6502-OS/test.s65

27 lines
379 B
Plaintext
Raw Normal View History

2024-01-11 20:51:45 +01:00
.include "other/file.h65"
2023-12-27 16:56:10 +01:00
2024-01-11 20:51:45 +01:00
.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"