From: ian Date: Sat, 17 Dec 2005 14:58:31 +0000 (+0000) Subject: actually compute correct bit value address X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=48a51c3193ada65d949179978b9a39c698bb6a5e;p=trains.git actually compute correct bit value address --- diff --git a/detpic/points.asm b/detpic/points.asm index 7dfcd50..3632255 100644 --- a/detpic/points.asm +++ b/detpic/points.asm @@ -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