mirror of
https://github.com/fadden/6502bench.git
synced 2024-08-19 20:29:36 +00:00
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.
31 lines
510 B
ArmAsm
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
|