mirror of
https://github.com/fadden/6502bench.git
synced 2026-04-27 03:17:45 +00:00
Added assembler regression tests, for 6502 and 65816. The "remove formatting" action now clears the flag. It's a bit of a stretch to call it "formatting" but this feels right. Updated the documentation, adding a new section about embedded instructions to the intro material.
46 lines
729 B
ArmAsm
46 lines
729 B
ArmAsm
.cpu "65816"
|
|
.logical $012b00
|
|
.as
|
|
.xs
|
|
clc
|
|
xce
|
|
sep #$30
|
|
jsr L12C00
|
|
jsl L22C00
|
|
jsl L22C01
|
|
jsl L22C02
|
|
jsl L22C03
|
|
jsl L22C04
|
|
jmp L12D00
|
|
|
|
.fill 226,$2b
|
|
|
|
L12C00 lda #$02
|
|
pha
|
|
plb
|
|
lda $2c07
|
|
rts
|
|
|
|
.byte $ad
|
|
.byte $00
|
|
.fill 246,$2c
|
|
|
|
L12D00 rts
|
|
|
|
.here
|
|
.logical $022c00
|
|
L22C00 .byte $af
|
|
L22C01 .byte $af
|
|
L22C02 .byte $af
|
|
L22C03 .byte $af
|
|
L22C04 .byte $af
|
|
.byte $af
|
|
.byte $af
|
|
nop
|
|
nop
|
|
nop
|
|
rtl
|
|
|
|
.fill 245,$8c
|
|
.here
|