mirror of
https://github.com/fadden/6502bench.git
synced 2024-09-10 13:54:52 +00:00
Sometimes there's a bunch of junk in the binary that isn't used for anything. Often it's there to make things line up at the start of a page boundary. This adds a ".junk" directive that tells the disassembler that it can safely disregard the contents of a region. If the region ends on a power-of-two boundary, an alignment value can be specified. The assembly source generators will output an alignment directive when possible, a .fill directive when appropriate, and a .dense directive when all else fails. Because we're required to regenerate the original data file, it's not always possible to avoid generating a hex dump.
47 lines
1.4 KiB
ArmAsm
47 lines
1.4 KiB
ArmAsm
;Project file was edited to get all big-endian data types, and to have an
|
|
;incorrect .junk alignment directive.
|
|
.setcpu "6502"
|
|
; .segment "SEG000"
|
|
.org $1000
|
|
rts
|
|
|
|
.byte $11
|
|
.word $1122
|
|
.faraddr $112233
|
|
.dword $11223344
|
|
.byte $11
|
|
.dbyt $1122
|
|
.byte $11,$22,$33
|
|
.byte $11,$22,$33,$44
|
|
.res 2,$00
|
|
.byte $80
|
|
.res 3,$00
|
|
.byte $80
|
|
.res 4,$00
|
|
.byte $80
|
|
.res 5,$00
|
|
.byte $80
|
|
.res 256,$00
|
|
.byte $80
|
|
.res 257,$cc
|
|
.byte $11
|
|
.byte $80
|
|
.byte $11,$22,$33,$44,$55,$66,$77,$88,$99,$00
|
|
.byte $80
|
|
LABEL: .byte $00,$11,$22,$33,$44,$55,$66,$77,$88,$99,$aa,$bb,$cc,$dd,$ee,$ff ;comment
|
|
.byte $00,$11,$22,$33,$44,$55,$66,$77,$88,$99,$aa,$bb,$cc,$dd,$ee,$ff
|
|
.byte $00,$11,$22,$33,$44,$55,$66,$77,$88,$99,$aa,$bb,$cc,$dd,$ee,$ff
|
|
.byte $ff,$ee,$dd,$cc,$bb,$aa,$99,$88,$77,$66,$55,$44,$33,$22,$11,$00
|
|
.byte $80
|
|
.res 137,$aa
|
|
.byte $81
|
|
.res 63,$00
|
|
.byte $81
|
|
.res 31,$ab
|
|
.byte $00,$00,$00,$00,$00,$00,$00,$01
|
|
.byte $81
|
|
.byte $10,$00,$00,$00,$00,$00,$00,$00
|
|
.byte $81
|
|
.res 2,$dd ;incorrect alignment
|
|
.res 140,$00
|