From: ian Date: Sat, 26 Nov 2005 19:40:56 +0000 (+0000) Subject: fix branch out of range X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=dad47f098af7d184b6875242ab9a49999370e322;p=trains.git fix branch out of range --- 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