1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-06-30 06:29:32 +00:00
6502bench/SourceGen/SGTestData/Expected/20252-nested-regions_64tass.S
Andy McFadden 387b50d827 Implement IsRelative for cc65/merlin32
Added support for "relative" address regions to the Merlin 32 and cc65
code generators.  These generate "flat" address directives, and so
were a little more complicated.

Suppressed generation of relative operands for non-addressable regions.

Also, tweaked the 20250-nested-regions test to include a negative
relative region offset.
2021-10-09 10:08:14 -07:00

31 lines
510 B
ArmAsm

.cpu "65816"
.logical $011000
.logical *+$010000
.logical *+$010000
.as
.xs
L31000 lda L31000
_L31004 lda _L31004
and _L1101F
jml _L21010
.here
_L21010 lda _L21010
jml _L11018
.here
_L11018 lda _L11018
jmp _L11026
_L1101F .byte $80
.logical $0000
.byte $ea
.byte $60
.dword _L31004
.here
_L11026 nop
rts
.here