aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/sharp-s.asm
blob: 58fd508cf83ffeba02b68c229504940ff61c5250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
; ( d -- 0 ) 
; Numeric IO
; pictured numeric output: convert all digits until 0 (zero) is reached

.if cpu_msp430==1
    HEADER(XT_SHARP_S,2,"#s",DOCOLON)
.endif

.if cpu_avr8==1
VE_SHARP_S:
    .dw $ff02
    .db "#s"
    .dw VE_HEAD
    .set VE_HEAD = VE_SHARP_S
XT_SHARP_S:
    .dw DO_COLON
PFA_SHARP_S:
.endif
NUMS1:
    .dw XT_SHARP
    .dw XT_2DUP
    .dw XT_OR
    .dw XT_ZEROEQUAL
    .dw XT_DOCONDBRANCH
    DEST(NUMS1) ; PFA_SHARP_S
    .dw XT_EXIT