1 ;======================================================================
10 debug_section udata 0x100
14 ;======================================================================
15 ; GENERALLY USEFUL ROUTINES
19 ; read pic no from ID locations and return it
20 ; W undefined pic number from ID loc 0
21 ; status Z undefined 1 iff master PIC
22 ; TBLPTR* undefined points to 20001
35 ; read id locations and store in canonical place
36 ; W undefined undefined
37 ; picno undefined pic number (from 20000)
38 ; idloc1 undefined idloc1 (from 20001)
57 bra_nn init_bitnum2bit_loop
64 ; other GPRs overwritten with 0xbb
80 bra memory_erase_byteloop
85 bra_nz memory_erase_pageloop
94 ; Adds a byte to debug
95 ; W message byte preserved
97 ; all others any preserved
98 ; Not for use in High ISR
99 mov_ff FSR0L, dsave_fsr0
100 mov_ff FSR0H, dsave_fsr0+1
105 mov_ff dsave_fsr0, FSR0L
106 mov_ff dsave_fsr0+1, FSR0H