mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-01 22:50:35 +00:00
d80132e941
There's no easy way to make non-zero-bank 65816 code work, so I'm punting and just generating a whole-file hex dump for those. This renders tests 2007 and 2009 useless, so I'm hesitant to claim that ACME support is fully functional.
78 lines
1.2 KiB
ArmAsm
78 lines
1.2 KiB
ArmAsm
!cpu 65816
|
|
* = $1000
|
|
!as
|
|
!rs
|
|
clc
|
|
xce
|
|
sep #$30
|
|
jsr L1014
|
|
jsr L101C
|
|
jsr L102A
|
|
jsr L102F
|
|
jsr L1059
|
|
rts
|
|
|
|
L1014 lda #$00
|
|
!byte $2c
|
|
L1017 lda #$01
|
|
beq L1017
|
|
rts
|
|
|
|
L101C sep #$30
|
|
lda $00
|
|
beq L1025
|
|
lda #$00
|
|
brk
|
|
|
|
L1025 sta+3 $012345
|
|
rts
|
|
|
|
L102A !byte $20
|
|
L102B rts
|
|
|
|
!byte $ea
|
|
bra L102B
|
|
|
|
L102F !byte $2c
|
|
L1030 !byte $2c
|
|
L1031 !byte $2c
|
|
L1032 !byte $2c
|
|
L1033 !byte $2c
|
|
L1034 !byte $2c
|
|
L1035 !byte $2c
|
|
L1036 !byte $2c
|
|
L1037 !byte $2c
|
|
L1038 nop
|
|
nop
|
|
asl
|
|
bcc L102F
|
|
asl
|
|
bcc L1030
|
|
asl
|
|
bcc L1031
|
|
asl
|
|
bcc L1032
|
|
asl
|
|
bcc L1033
|
|
asl
|
|
bcc L1034
|
|
asl
|
|
bcc L1035
|
|
asl
|
|
bcc L1036
|
|
asl
|
|
bcc L1037
|
|
asl
|
|
bcc L1038
|
|
rts
|
|
|
|
L1059 !byte $2c
|
|
L105A nop
|
|
!byte $ad
|
|
L105C lda $00
|
|
asl
|
|
bcc L105A
|
|
asl
|
|
bcc L105C
|
|
!byte $af
|