- include vectors.fin
+ include ../iwjpictest/syncwrite.inc
+ include detect.inc
include i2clib.inc
- include panic.fin
- include routines-led.fin
+ include mascan.fin
include misc.fin
- include points.fin
- include variables+vars.fin
- include detect.inc
- include ../iwjpictest/syncwrite.inc
- include reverse.fin
- include program.fin
include nmra-stream.fin
+ include panic.fin
+ include points.fin
include power.fin
- include mascan.fin
+ include program.fin
+ include reverse.fin
+ include routines-led.fin
+ include serout.fin
+ include variables+vars.fin
+ include vectors.fin
end
; 1000 0000 we're expecting an extra byte
;----------------------------------------------------------------------
-slavetable_section udata 0x280
+slavetable_section udata 0x400
ste_szln2 equ 3
; each entry is a number of bytes, at these offsets:
mov_lw 0x4f ; W = 01001111
and_wff b ; b = 0d00dddd
mov_fw POSTINC1 ; W = detbasel; FSR1 -> lastd0
- rcall read_prep_detectbyte ; b = 0d00dddd
- ; u = 0C00CCCC
+ rcall read_got_detectbyte_prep ; b = 0d00dddd
+ ; u = 0C00CCCC
bt_f_if1 b, 6 ; b bit .d......
bs_f b, 4 ; b = 0d0ddddd
; ^ ^ copies of same bit
mov_wf cbyte ; cbyte = M0000000
bc_f b, 7 ; b = 00dddddd
mov_fw POSTINC1 ; W = detbasel; FSR1 -> lastd0
- rcall read_prep_detectbyte
+ rcall read_got_detectbyte_prep
goto addmsgs_revhead
;-----
mov_fw POSTINC1 ; W = detbasel; FSR1 -> lastd0
inc_f FSR1L ; FSR1 -> lastd1
add_lw 5 ; W = detbasel+8
- rcall read_prep_detectbyte
+ rcall read_got_detectbyte_prep
goto addmsgs_all
;----------
mov_fw POSTDEC1 ; W = detbasel; FSR1 -> flags
bs_f FSR1L, 2 ; FSR1L -> lastd2
add_lw 13 ; W = detbasel+16
- rcall read_prep_detectbyte
+ rcall read_got_detectbyte_prep
goto addmsgs_all
;----------
; GENERATION OF DETECTION MESSAGES FOR HOST - MAD BT_F_IF1 TABLES
addmsg_testbit macro bit
- bt_f_if1 u, bit fixme need to test something other than w !
+ bt_f_if1 u, bit
rcall addmsg_one
endm
; other conditions on entry and exit as for entry to addmsgs_<kind>, above
rr_fw TOSL ; W = 0???bbb0
rr_w ; W = 00???bbb
- ior_fw 0xf8 ; W = 11111bbb
+ ior_wfw 0xf8 ; W = 11111bbb
mov_wf FSR0L ; FSR0L = 11111bbb
clr_f FSR0H ; FSR0 -> bitnum2bit[bbb]
add_wfw t ; W = adjdetbasel + 11111bbb
# Miscellaneous
E ; `expected'; we were told to panic
+T ; master paniced because slave paniced
# Regarding communications from the host
HX ::t ; host sent unknown command
# Regarding communications by master with slaves
MX ; slave (or intern) sent bad extra byte
-MR mascan::b,mascan::cslot ; reversers set byte with zz bit set
+MR mascan:b,mascan:cslot ; reversers set byte with zz bit set
MD ; i2cmu_done !
# Problematic interrupts