mirror of
https://github.com/fadden/6502bench.git
synced 2024-08-19 20:29:36 +00:00
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.
36 lines
564 B
ArmAsm
36 lines
564 B
ArmAsm
!cpu 6502
|
|
* = $1000
|
|
jmp L0000
|
|
|
|
!pseudopc $0000 {
|
|
L0000 bit+2 L0000
|
|
L0003 lda+1 L0000
|
|
lda+1 L0003
|
|
bne LFFC3
|
|
bmi $ffc3
|
|
bvs L0012
|
|
bvc L0080
|
|
|
|
lodat !byte $00
|
|
!byte $01
|
|
!byte $02
|
|
|
|
L0012 lda+1 lodat+1
|
|
clc
|
|
bcc LFFC0
|
|
|
|
}
|
|
!pseudopc $0080 {
|
|
L0080 bit+2 L0080
|
|
jmp LFFC6
|
|
|
|
}
|
|
!pseudopc $ffc0 {
|
|
LFFC0 bit LFFC0
|
|
LFFC3 clc
|
|
bcc L0003
|
|
|
|
LFFC6 rts
|
|
|
|
}
|