mirror of
https://github.com/fadden/6502bench.git
synced 2024-09-10 13:54:52 +00:00
The uncategorized data scanner isn't supposed to create strings or ".fill" directives that straddle labels, long comments, notes, visualizations, or ORG directives. The test for crossing an ORG directive is incomplete, and doesn't correctly handle no-op ORGs (where the new address is the same as the old address). The code generator doesn't output ORGs that are hidden inside other things, so we're not generating bad code, but it looks funny on screen and may cause problems later on. The 2004-numeric-types test has the basic .align/.fill/.bulk directive tests, and now has an extended set of tests for uncategorized data region splitting.
83 lines
1.8 KiB
ArmAsm
83 lines
1.8 KiB
ArmAsm
;Project file was edited to get all big-endian data types, and to have an
|
|
;incorrect .junk alignment directive.
|
|
org $1000
|
|
bit L1448
|
|
jsr L14A8
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
rts
|
|
|
|
dfb $11
|
|
dw $1122
|
|
adr $112233
|
|
adrl $11223344
|
|
dfb $11
|
|
ddb $1122
|
|
dfb $11,$22,$33
|
|
dfb $11,$22,$33,$44
|
|
ds 2,$00
|
|
dfb $80
|
|
ds 3,$00
|
|
dfb $80
|
|
ds 4,$00
|
|
dfb $80
|
|
ds 5,$00
|
|
dfb $80
|
|
ds 256,$00
|
|
dfb $80
|
|
ds 257,$cc
|
|
hex 11
|
|
dfb $80
|
|
hex 11223344556677889900
|
|
dfb $80
|
|
LABEL hex 00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff ;comment on bulk
|
|
hex 00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100
|
|
dfb $80
|
|
ds \,$aa
|
|
dfb $81
|
|
ds 63,$00
|
|
dfb $81
|
|
ds 31,$ab
|
|
hex 0000000000000001
|
|
dfb $81
|
|
hex 1000000000000000
|
|
dfb $81
|
|
ds 2,$dd ;incorrect alignment
|
|
ds \,$00
|
|
ds 16,$82
|
|
ds 8,$83
|
|
org $1428
|
|
ds 8,$83
|
|
ds 8,$84
|
|
UserLabel ds 8,$84
|
|
ds 8,$85
|
|
L1448 ds 8,$85
|
|
ds 16,$86
|
|
asc 8787878787878787
|
|
;long comment
|
|
asc 8787878787878787
|
|
ds 16,$88
|
|
ds 8,$89
|
|
ds 8,$89
|
|
asc 8a8a8a8a8a8a8a8a
|
|
asc 8a8a8a8a8a8a8a8a
|
|
ds 8,$8b
|
|
L14A8 ds 8,$8b
|
|
ds 8,$8c
|
|
dfb %10001100
|
|
ds 7,$8c
|