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.
71 lines
1.0 KiB
ArmAsm
71 lines
1.0 KiB
ArmAsm
org $2b00
|
|
jsr L2C00
|
|
jsr L2C05
|
|
jsr L2C07
|
|
jsr L2C0D
|
|
jsr L2C10
|
|
jsr L2C17
|
|
jsr L2C18
|
|
jsr L2C19
|
|
jsr L2C1A
|
|
jsr L2C1F
|
|
jsr L2C23
|
|
jsr site4a
|
|
jsr site4b
|
|
jmp L2D00
|
|
|
|
ds 214,$2b
|
|
|
|
L2C00 bit $ff58
|
|
bvs L2C0C
|
|
L2C05 sec
|
|
dfb $90
|
|
L2C07 clc
|
|
clv
|
|
bvc L2C0C
|
|
|
|
dfb $80
|
|
|
|
L2C0C rts
|
|
|
|
L2C0D lda #$00
|
|
dfb $2c
|
|
L2C10 lda #$ff
|
|
sta :L2C16
|
|
rts
|
|
|
|
:L2C16 dfb $cc
|
|
|
|
L2C17 dfb $2c
|
|
L2C18 dfb $2c
|
|
L2C19 dfb $2c
|
|
L2C1A dfb $2c
|
|
dfb $2c
|
|
nop
|
|
nop
|
|
rts
|
|
|
|
L2C1F lda #$1f
|
|
sec
|
|
dfb $90
|
|
L2C23 dfb $a9
|
|
dfb $f0
|
|
clc
|
|
nop
|
|
bcc :L2C2A
|
|
asl A
|
|
:L2C2A nop
|
|
rts
|
|
|
|
site4a lda site4b+1
|
|
rts
|
|
|
|
site4b lda site4a
|
|
rts
|
|
|
|
ds 204,$2c
|
|
|
|
L2D00 rts
|
|
|
|
ds 255,$2d
|