aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/depth.asm
blob: c17d84db7d20c341ef877ed74a7508fb08f64318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; ( -- n ) 
; Stack
; number of single-cell values contained in the data stack before n was placed on the stack.
.if cpu_msp430==1
    HEADER(XT_DEPTH,5,"depth",DOCOLON)
.endif

.if cpu_avr8==1
VE_DEPTH:
    .dw $ff05
    .db "depth",0
    .dw VE_HEAD
    .set VE_HEAD = VE_DEPTH
XT_DEPTH:
    .dw DO_COLON
PFA_DEPTH:
.endif
    .dw XT_SP0
    .dw XT_SP_FETCH
    .dw XT_MINUS
    .dw XT_2SLASH
    .dw XT_1MINUS
    .dw XT_EXIT