chiark / gitweb /
make slave capable of panic reset too
authorian <ian>
Wed, 4 Jan 2006 22:15:46 +0000 (22:15 +0000)
committerian <ian>
Wed, 4 Jan 2006 22:15:46 +0000 (22:15 +0000)
detpic/panic.asm

index 65e84fa96777357f74174f9a6e2d63bb89e61f40..12705cb5ac94357ca8a4d7fddcc630c44646c139 100644 (file)
@@ -436,15 +436,18 @@ write_ifnot_00
        bt_w_if1 6
        bra     panic_crashread_setpointer
        bt_f_if0 idloc1,idloc1_master
-       return ; all the remaining options are for master only
+       bra     write_ifnot0_ifnotmaster
+       ; the next few options are for master only:
+
        bt_w_if1 5
        bra     write_if_master_slaveselect
        bt_w_if1 4
        bra     write_if_master_masterread
-       bt_w_if1 3
+       bt_w_if0 3
        bra     write_if_master_slaveread
 
-       xor_lw  0x11
+write_ifnot0_ifnotmaster
+       xor_lw  0x09
        bra_z   panic_reset
        ; nope, well, we ignore it
        return