aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/bm-clear.asm
blob: 6c475175159456dbc6ddbe9d9a72ee43038e11c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; ( bitmask byte-addr --  )
; MCU
; clear bits set in bitmask on byte at addr
VE_BM_CLEAR:
    .dw $ff08
    .db "bm-clear"
    .dw VE_HEAD
    .set VE_HEAD = VE_BM_CLEAR
XT_BM_CLEAR:
    .dw PFA_BM_CLEAR
PFA_BM_CLEAR:
    movw zl, tosl
    loadtos
    com tosl
    ld temp0, Z
    and temp0, tosl
    st Z, temp0
    loadtos
    jmp_ DO_NEXT