Merge pull request #2010 from bbbradsmith/ca65_brk_optional_signature

optional BRK signature on all 6502 CPUs, not just 65816
This commit is contained in:
Bob Andrews
2023-03-04 13:21:28 +01:00
committed by GitHub
4 changed files with 75 additions and 10 deletions

View File

@@ -0,0 +1,45 @@
; 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
brk #$60 ; 2 bytes
.setcpu "6502X"
brk
brk $60
brk #$60
.setcpu "6502DTV"
brk
brk $60
brk #$60
.setcpu "65SC02"
brk
brk $60
brk #$60
.setcpu "65816"
brk
brk $60
brk #$60
cop
cop $60
cop #$60
; WDM is a NOP that gives +2 PC, probably not useful to make its signature byte optional
;wdm
wdm $60
wdm #$60
.setcpu "4510"
brk
brk $60
brk #$60
.setcpu "HuC6280"
brk
brk $60
brk #$60

Binary file not shown.