1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-11 14:05:12 +00:00
6502bench/SourceGen/SGTestData/Expected/20252-nested-regions_merlin32.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

27 lines
457 B
ArmAsm

org $011000
org *+$010000
org *+$010000
L31000 ldal L31000
:L31004 ldal :L31004
andl :L1101F
jml :L21010
org $021010
:L21010 ldal :L21010
jml :L11018
org $011018
:L11018 ldal :L11018
jmp :L11026
:L1101F dfb $80
org $0000
dfb $ea
dfb $60
adrl :L31004
org $011026
:L11026 nop
rts