From dad47f098af7d184b6875242ab9a49999370e322 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 26 Nov 2005 19:40:56 +0000 Subject: [PATCH] fix branch out of range --- detpic/i2clib.asm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/detpic/i2clib.asm b/detpic/i2clib.asm index addff1c..6f4b037 100644 --- a/detpic/i2clib.asm +++ b/detpic/i2clib.asm @@ -473,10 +473,14 @@ s_event_idle_addrrecvread s_event_reading bs_f st, st_awaiting ; (probably) - chkvals_start SSPSTAT - chkval 0, 0xac, i2csu_read_another ; D,!P, S,R,!BF - ; 23cy until 1st insn of i2csu_read_another + mov_fw SSPSTAT + xor_lw 0xac ; D,!P, S,R,!BF + bra_nz s_event_reading_not_another + goto i2csu_read_another + ; 24cy until 1st insn of i2csu_read_another +;... +s_event_reading_not_another ; Whatever is happening, we're done reading now ! clr_f st call i2csu_read_done -- 2.30.2