pic2detinfo equ 0x6040
picno2revmasks equ 0x6080
-maxpic_ln2 equ 5
-maxpic equ 1 << maxpic_ln2
+maxpics_ln2 equ 5
+maxpics equ 1 << maxpics_ln2
-maxpoint_ln2 equ 5
-maxpoint equ 1 << maxpoint_ln2
+maxpoints_ln2 equ 5
+maxpoints equ 1 << maxpoints_ln2
ptix2bitlat equ 0x300
ptix2bitlat_section udata ptix2bitlat
- res maxpoint * 2 ; bit and LAT*
+ res maxpoints * 2 ; bit and LAT*
; for unused point, 0x00 and 0x00
udata_acs
mov_lfsr ptix2bitlat-1, 0 ; FSR0 -> this bit and LAT*
; points just at last thing we've filled in
- load_perpic_tblptr picno2ptmap, maxpoint/8
+ load_perpic_tblptr picno2ptmap, maxpoints/8
- mov_lw maxpoint/8
+ mov_lw maxpoints/8
mov_wf t ; t = byte counter
;...
points_init_byte_loop
mov_lw bkptix2portnumbitnum & 0xff
bt_f_if0 idloc1,idloc1_boarddet
- add_lw maxpoint
+ add_lw maxpoints
mov_wf TBLPTRL
mov_lw bkptix2portnumbitnum >> 8
mov_lfsr bitnum2bit+7, 1 ; FSR1 -> bitnum2bit+7
mov_lfsr ptix2bitlat, 0 ; FSR0 -> this bit (and LAT*)
- mov_lw maxpoint
+ mov_lw maxpoints
mov_wf t ; t = loop counter
;...
points_init_portbit_loop
mov_fw TABLAT
bra_n point_initing_bad_point
- ior_wff 0xf0 ; W -> bit value for bit
+ ior_lw 0xf8 ; W -> bit value for bit
mov_wf FSR1L ; FSR1 -> bit value for bit
swap_fw TABLAT ; W = bitnum4 || portnum4
; MASTER - Access bank variables and other sections
udata
-polarities_commanded_buffer res maxpic+1
+polarities_commanded_buffer res maxpics+1
; Each byte is:
; 11RRRRRRR reverse command for slave, waiting to write
; 000000001 that pic is not a reversers pic
} else {
o("\n");
}
- o(sprintf " fill %s, %d*(maxpic-%d)\n\n",
+ o(sprintf " fill %s, %d*(maxpics-%d)\n\n",
$fillvalue, $entrysize, $lastnumdone);
}