aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/plusstore.asm
blob: 344670b8c42ee15186349d13c1276e2ed928376d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; ( n a-addr -- ) 
; Arithmetics
; add n to content of RAM address a-addr
VE_PLUSSTORE:
    .dw $ff02
    .db "+!"
    .dw VE_HEAD
    .set VE_HEAD = VE_PLUSSTORE
XT_PLUSSTORE:
    .dw PFA_PLUSSTORE
PFA_PLUSSTORE:
    movw zl, tosl
    loadtos
    ldd temp2, Z+0
    ldd temp3, Z+1
    add tosl, temp2
    adc tosh, temp3
    std Z+0, tosl
    std Z+1, tosh
    loadtos
    jmp_ DO_NEXT