1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-09-10 13:54:52 +00:00
6502bench/SourceGen/SGTestData/Expected/10022-embedded-instructions_merlin32.S
Andy McFadden e9fbc6c96c Change Merlin 32 output suffix
We append an assembler identifier to generated code.  For Merlin 32,
this was "_Merlin32".  All of the other assemblers use a lower-case
string, which makes Merlin look a little weird, so it has been
changed to "_merlin32".

Windows filesystems are generally case-insensitive, so this won't
likely affect anything.
2020-10-18 15:47:11 -07:00

75 lines
1.2 KiB
ArmAsm

org $1000
clc
xce
sep #$30
jsr L1014
jsr L101C
jsr L102A
jsr L102F
jsr L1059
rts
L1014 lda #$00
dfb $2c
:L1017 lda #$01
beq :L1017
rts
L101C sep #$30
lda $00
beq :L1025
lda #$00
brk
:L1025 stal $012345
rts
L102A dfb $20
:L102B rts
dfb $ea
bra :L102B
L102F dfb $2c
:L1030 dfb $2c
:L1031 dfb $2c
:L1032 dfb $2c
:L1033 dfb $2c
:L1034 dfb $2c
:L1035 dfb $2c
:L1036 dfb $2c
:L1037 dfb $2c
:L1038 nop
nop
asl A
bcc L102F
asl A
bcc :L1030
asl A
bcc :L1031
asl A
bcc :L1032
asl A
bcc :L1033
asl A
bcc :L1034
asl A
bcc :L1035
asl A
bcc :L1036
asl A
bcc :L1037
asl A
bcc :L1038
rts
L1059 dfb $2c
:L105A nop
dfb $ad
:L105C lda $00
asl A
bcc :L105A
asl A
bcc :L105C
dfb $af