aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/char.asm
blob: 0fde37b22e91856e2b2fcc33334f0f100f4bffb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; ( "<spaces>name" -- c ) 
; Tools
; copy the first character of the next word onto the stack

.if cpu_msp430==1
    HEADER(XT_CHAR,4,"char",DOCOLON)
.endif

.if cpu_avr8==1
VE_CHAR:
    .dw $ff04
    .db "char"
    .dw VE_HEAD
    .set VE_HEAD = VE_CHAR
XT_CHAR:
    .dw DO_COLON
PFA_CHAR:
.endif
    .dw XT_PARSENAME
    .dw XT_DROP
    .dw XT_CFETCH
    .dw XT_EXIT