goto panic_routine
endm
-;----------------------------------------
-; ifbit1(REGISTER,BITNUMBER)
-; executes the next instruction but only if bit BITNUMBER
-; in REGISTER (which must be in the access bank) is set
-ifbit1 macro REGISTER, BITNUMBER
- btfsc REGISTER, BITNUMBER, 0
- endm
-
-;----------------------------------------
-; ifbit0(REGISTER,BITNUMBER)
-; executes the next instruction but only if bit BITNUMBER
-; in REGISTER (which must be in the access bank) is clear
-ifbit0 macro REGISTER, BITNUMBER
- btfss REGISTER, BITNUMBER, 0
- endm
-
;----------------------------------------
; debug(BYTE)
; writes BYTE through the serial port