chiark / gitweb /
actually compute correct bit value address
authorian <ian>
Sat, 17 Dec 2005 14:58:31 +0000 (14:58 +0000)
committerian <ian>
Sat, 17 Dec 2005 14:58:31 +0000 (14:58 +0000)
detpic/points.asm

index 7dfcd50da7dbddc63c254322ae7c8a64cecc9612..3632255353dc0191d3cbfd77c9ccebeff8363656 100644 (file)
@@ -193,7 +193,8 @@ points_init_portbit_if_used
        mov_fw  TABLAT
        bra_n   point_initing_bad_point
        
-       and_wff FSR1L           ; FSR1 -> bit value for bit
+       ior_wff 0xf0            ; W -> bit value for bit
+       mov_wf  FSR1L           ; FSR1 -> bit value for bit
 
        swap_fw TABLAT          ; W = bitnum4 || portnum4
        and_lw  0x0f            ; W = portnum4