mirror of
https://github.com/fadden/6502bench.git
synced 2024-09-11 04:57:02 +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.
88 lines
2.0 KiB
ArmAsm
88 lines
2.0 KiB
ArmAsm
;Project file was edited to get all big-endian data types, and to have an
|
|
;incorrect .junk alignment directive.
|
|
!cpu 6502
|
|
* = $1000
|
|
bit L1448
|
|
jsr L14A8
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
rts
|
|
|
|
!byte $11
|
|
!word $1122
|
|
!24 $112233
|
|
!32 $11223344
|
|
!byte $11
|
|
!byte $11,$22
|
|
!byte $11,$22,$33
|
|
!byte $11,$22,$33,$44
|
|
!fill 2,$00
|
|
!byte $80
|
|
!fill 3,$00
|
|
!byte $80
|
|
!fill 4,$00
|
|
!byte $80
|
|
!fill 5,$00
|
|
!byte $80
|
|
!fill 256,$00
|
|
!byte $80
|
|
!fill 257,$cc
|
|
!hex 11
|
|
!byte $80
|
|
!hex 11223344556677889900
|
|
!byte $80
|
|
LABEL !hex 00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff ;comment on bulk
|
|
!hex 00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100
|
|
!byte $80
|
|
!align 255,0,$aa
|
|
!byte $81
|
|
!align 63,0,$00
|
|
!byte $81
|
|
!align 31,0,$ab
|
|
!hex 0000000000000001
|
|
!byte $81
|
|
!hex 1000000000000000
|
|
!byte $81
|
|
!fill 2,$dd ;incorrect alignment
|
|
!align 255,0,$00
|
|
!fill 8,$82
|
|
!pseudopc $1408 {
|
|
!fill 8,$82 ;note no-op .ORG
|
|
!fill 8,$83
|
|
}
|
|
!pseudopc $1428 {
|
|
!fill 8,$83 ;meaningful .ORG
|
|
!fill 8,$84
|
|
UserLabel !fill 8,$84
|
|
!fill 8,$85
|
|
L1448 !fill 8,$85
|
|
!fill 16,$86
|
|
!fill 8,$87
|
|
;long comment
|
|
!fill 8,$87
|
|
!fill 16,$88
|
|
!fill 8,$89
|
|
!fill 8,$89
|
|
!fill 8,$8a
|
|
!fill 8,$8a
|
|
!fill 8,$8b
|
|
L14A8 !fill 8,$8b
|
|
!fill 8,$8c
|
|
!byte %10001100
|
|
!fill 7,$8c
|
|
}
|