aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/hex.asm
blob: c87fa6959a3260cf24edcbfdfff17edb6f78d150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; ( -- ) 
; Numeric IO
; set base for numeric conversion to 10

.if cpu_msp430==1
    HEADER(XT_HEX,3,"hex",DOCOLON)
.endif

.if cpu_avr8==1
VE_HEX:
    .dw $ff03
    .db "hex",0
    .dw VE_HEAD
    .set VE_HEAD = VE_HEX
XT_HEX:
    .dw DO_COLON
PFA_HEX:
.endif
    .dw XT_DOLITERAL
    .dw 16
    .dw XT_BASE
    .dw XT_STORE
    .dw XT_EXIT