aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/dt-null.asm
blob: 640562fb04b126b417759d08449ef7f136864b39 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
; ( -- addr )
; Interpreter
; there is no parser for this recognizer, this is the default and failsafe part

.if cpu_msp430==1
    HEADER(XT_DT_NULL,7,"dt:null",DOROM)
.endif

.if cpu_avr8==1
VE_DT_NULL:
    .dw $ff07
    .db "dt:null"
    .dw VE_HEAD
    .set VE_HEAD = VE_DT_NULL
XT_DT_NULL:
    .dw PFA_DOCONSTANT
PFA_DT_NULL:
.endif
    .dw XT_FAIL  ; interpret
    .dw XT_FAIL  ; compile
    .dw XT_FAIL  ; postpone

; ( addr len -- )
; Interpreter
; default failure action: throw exception -13.
.if cpu_msp430==1
    HEADLESS(XT_FAIL,DOCOLON)
.endif
.if cpu_avr8==1
;VE_FAIL:
;    .dw $ff04
;    .db "fail"
;    .dw VE_HEAD
;    .set VE_HEAD = VE_FAIL
XT_FAIL:
    .dw DO_COLON
PFA_FAIL:
.endif
    .dw XT_DOLITERAL
    .dw -13
    .dw XT_THROW