aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/abs.asm
blob: 429a6039363e754a29a901580ac697e6a9e32459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;C ABS     n1 -- +n2     absolute value
;   DUP ?NEGATE ;

.if cpu_msp430==1
    HEADER(XT_ABS,3,"abs",DOCOLON)
.endif

.if cpu_avr8==1
VE_ABS:
    .dw $ff03
    .db "abs",0
    .dw VE_HEAD
    .set VE_HEAD = VE_ABS
XT_ABS:
    .dw DO_COLON
PFA_ABS:

.endif

    .DW XT_DUP,XT_QNEGATE,XT_EXIT