1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-01 22:50:35 +00:00
6502bench/SourceGen/SGTestData/Expected/10022-embedded-instructions_64tass.S
Andy McFadden 3ff0fbae34 Regression test rework, part 1
The regression tests were written with the assumption that all cross
assemblers would support 6502, 65C02, and 65816 code.  There are a
few that support 65816 partially (e.g. ACME) or not at all.  To best
support these, we need to split some of the tests into pieces, so
that important 6502 tests aren't skipped simply because parts of the
test also exercise 65816 code.

The first step is to change the regression test naming scheme.  The
old system used 1xxx for tests without project files, and 2xxx for
tests with project files.  The new system uses 1xxxN / 2xxxN, where
N indicates the CPU type: 0 for 6502, 1 for 65C02, and 2 for 65816.
For the 1xxxN tests the new value determines which CPU is used,
which allows us to move the "allops" 6502/65C02 tests into the
no-project category.  For 2xxxN it just allows the 6502 and 65816
versions to have the same base name and number.

This change updates the first batch of tests.  It involves minor
changes to the test harness and a whole bunch of renaming.
2020-06-06 14:47:19 -07:00

78 lines
1.3 KiB
ArmAsm

.cpu "65816"
* = $1000
.as
.xs
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 $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 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 .byte $2c
_L105A nop
.byte $ad
_L105C lda $00
asl a
bcc _L105A
asl a
bcc _L105C
.byte $af