aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/2swap.asm
blob: 1056c543080908f3245d7796142ed6ab9e32887e (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
; ( x1 x2 x3 x4 -- x3 x4 x1 x2 ) 
; Stack
; Exchange the two top cell pairs

.if cpu_msp430==1
    HEADER(XT_2SWAP,5,"2swap",DOCOLON)
.endif

.if cpu_avr8==1
VE_2SWAP:
    .dw $ff05
    .db "2swap",0
    .dw VE_HEAD
    .set VE_HEAD = VE_2SWAP
XT_2SWAP:
    .dw DO_COLON
PFA_2SWAP:

.endif
    .dw XT_ROT
    .dw XT_TO_R
    .dw XT_ROT
    .dw XT_R_FROM
    .dw XT_EXIT