aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/create.asm
blob: b288474dc1d73f4ae43349d26241e7fdbb723b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; ( -- a-addr ) (C: "<spaces>name" -- )
; Dictionary
; create a dictionary header. XT is (constant), with the address of the data field of name

.if cpu_msp430==1
    HEADER(XT_CREATE,6,"create",DOCOLON)
.endif

.if cpu_avr8==1
VE_CREATE:
    .dw $ff06
    .db "create"
    .dw VE_HEAD
    .set VE_HEAD = VE_CREATE
XT_CREATE:
    .dw DO_COLON
PFA_CREATE:
.endif
    .dw XT_DOCREATE
    .dw XT_REVEAL
    .dw XT_COMPILE
    .dw PFA_DOCONSTANT
    .dw XT_EXIT