aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/constant.asm
blob: 2f79dc3be4f19306b2959e2b883aa46986fb969e (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
; ( -- x ) (C: x "<spaces>name" -- )
; Compiler
; create a constant in the dictionary

.if cpu_msp430==1
    HEADER(XT_CONSTANT,8,"constant",DOCOLON)
.endif

.if cpu_avr8==1

VE_CONSTANT:
    .dw $ff08
    .db "constant"
    .dw VE_HEAD
    .set VE_HEAD = VE_CONSTANT
XT_CONSTANT:
    .dw DO_COLON
PFA_CONSTANT:
.endif
    .dw XT_DOCREATE
    .dw XT_REVEAL
    .dw XT_COMPILE
    .dw PFA_DOVARIABLE
    .dw XT_COMMA
    .dw XT_EXIT