mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-18 15:06:07 +00:00
5f472b60cf
Split ".org" into ".arstart" and ".arend" (address range start/end). Address range ends are now shown in the code list view, and the pseudo-op can be edited in app settings. Address range starts are now shown after notes and long comments, rather than before, which brings the on-screen display in sync with generated code. Reworked the address range editor UI to include the new features. The implementation is fully broken. More changes to the AddressMap API, putting the resolved region length into a separate ActualLength field. Added FindRegion(). Renamed some things. Code generation changed slightly: the blank line before a region-end line now comes after it, and ACME's "} ;!pseudopc" is now just "}". This required minor updates to some of the regression test results.
26 lines
521 B
ArmAsm
26 lines
521 B
ArmAsm
.cpu "6502"
|
|
.enc "sg_ascii"
|
|
.cdef $20,$7e,$20
|
|
* = $2000
|
|
jmp L2100
|
|
|
|
.text "hello, " ;string should be split by no-op addr change
|
|
.logical $200a
|
|
.text "world"
|
|
.byte $80
|
|
.here
|
|
|
|
.logical $2100
|
|
L2100 lda #$00
|
|
sta addr1-1 ;edit this operand
|
|
sta addr1
|
|
sta addr1+1
|
|
jmp L2121
|
|
|
|
.text "testing stuff."
|
|
addr1 .text "!?---"
|
|
|
|
L2121 rts
|
|
|
|
.here
|