1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-12 05:31:04 +00:00
6502bench/SourceGen/SGTestData/Expected/1004-data-recognition_cc65.S
Andy McFadden 2065f4ef9e Attempt to generate segment names for cc65
This worked, sort of.  The problem is that SourceGen will revert to
hex output in certain situations, such as a broken symbolic
reference.  There happens to be one in the ZIPPY example, and it's
on a relative branch.

The goal with the segment stuff is to allow cc65 to treat the
source as relocatable code.  In that context, a relative branch to
an absolute address doesn't make any sense, so the assembler reports
a range error.

We don't currently have a mechanism that guarantees no references
are broken (and no affordance for finding them), so we can't make
this mode the default yet.

Instead, we continue to use the generic config, but generate the
correct set of lines as comments.

(issue #39)
2018-11-18 15:11:29 -08:00

37 lines
810 B
ArmAsm

.setcpu "65816"
; .segment "SEG000"
.org $1000
.a8
.i8
lda L10AC
ora L10BC
rts
.byte $33
.byte $33
.byte $33
.byte $80
.byte "4444"
.byte $80
.byte "55555"
.byte $80
.byte "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
.byte $80
.res 63,$4c
.byte $81
.byte $00
.byte $00
.byte $00
.byte $81
.byte $00
.byte $00
.byte $00
.byte $00
.byte $81
.res 5,$00
.byte $81
.res 8,$00
L10AC: .res 8,$00
.res 8,$82
L10BC: .res 8,$82