1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-25 06:17:58 +00:00

optional BRK signature on all 6502 CPUs, not just 65816 (also COP)

This commit is contained in:
bbbradsmith
2023-02-24 22:40:29 -05:00
parent a299ef4210
commit cd8fa39066
3 changed files with 44 additions and 8 deletions
+36
View File
@@ -0,0 +1,36 @@
; test of optional signature byte for BRK on all 6502-derived CPUs
; and also COP on 65C816
.setcpu "6502"
brk ; 1 byte
brk 0 ; 2 bytes
brk $60 ; 2 bytes
.setcpu "6502X"
brk
brk $60
.setcpu "6502DTV"
brk
brk $60
.setcpu "65SC02"
brk
brk $60
.setcpu "65816"
brk
brk $60
cop
cop $60
; WDM is a NOP that gives +2 PC, probably not useful to make its signature byte optional
;wdm
wdm $60
.setcpu "4510"
brk
brk $60
.setcpu "HuC6280"
brk
brk $60
Binary file not shown.