mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-02 13:51:36 +00:00
17dc908420
Tests 10022-embedded-instructions and 10032-flags-and-branches were a mix of 6502 and 65816 code. The 6502 code has been separated into its own file, so that the tests can be run on 8-bit-only assemblers.
26 lines
426 B
ArmAsm
26 lines
426 B
ArmAsm
.cpu "65816"
|
|
* = $1000
|
|
.as
|
|
.xs
|
|
jsr L1006
|
|
jmp L1020
|
|
|
|
L1006 sep #$30
|
|
lda $00
|
|
beq _L100F
|
|
lda #$00
|
|
brk
|
|
|
|
_L100F sta $012345
|
|
lda $00
|
|
beq _L101A
|
|
lda #$00
|
|
.byte $85
|
|
_L101A .byte $8f
|
|
eor $23
|
|
.byte $01
|
|
nop
|
|
rts
|
|
|
|
L1020 .byte $af
|