27 lines
379 B
Plaintext
27 lines
379 B
Plaintext
.include "other/file.h65"
|
|
|
|
.zeropage
|
|
var1: .res 1
|
|
char: .res 1
|
|
|
|
.code
|
|
.proc my_subroutine
|
|
pha
|
|
bbr4 var1,@bit_4_set
|
|
bit var1
|
|
; macro packs are supported
|
|
jmi other_routine
|
|
lda #'a'
|
|
sta char
|
|
bra @end
|
|
@bit_4_set:
|
|
; custom macros can be highlighted
|
|
Printf STR_FMT,char,var1
|
|
@end:
|
|
pla
|
|
rts
|
|
.endproc
|
|
|
|
.rodata
|
|
STR_FMT: .asciiz "%c: num=%x"
|