mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-01 22:50:35 +00:00
39b7b20144
This is the first step toward changing the address region map from a linear list to a hierarchy. See issue #107 for the plan. The AddressMap class has been rewritten to support the new approach. The rest of the project has been updated to conform to the new API, but feature-wise is unchanged. While the map class supports nested regions with explicit lengths, the rest of the application still assumes a series of non-overlapping regions with "floating" lengths. The Set Address dialog is currently non-functional. All of the output for cc65 changed because generation of segment comments has been removed. Some of the output for ACME changed as well, because we no longer follow "* = addr" with a redundant pseudopc statement. ACME and 65tass have similar approaches to placing things in memory, and so now have similar implementations.
87 lines
2.0 KiB
ArmAsm
87 lines
2.0 KiB
ArmAsm
;Project file was edited to force ASCII formatting for some operands.
|
|
.setcpu "6502"
|
|
.org $1000
|
|
lda $01
|
|
lda $0102
|
|
lda $fe
|
|
lda $feff
|
|
lda 1
|
|
lda 258
|
|
lda 254
|
|
lda 65279
|
|
lda 1
|
|
lda 258
|
|
lda 254
|
|
lda 65279
|
|
lda %00000001
|
|
lda %0000000100000010
|
|
lda %11111110
|
|
lda %1111111011111111
|
|
jmp skipdata
|
|
|
|
.byte $01
|
|
.word $0201
|
|
.faraddr $030201
|
|
.dword $04030201
|
|
.byte 1
|
|
.word 513
|
|
.faraddr 197121
|
|
.dword 67305985
|
|
.byte 1
|
|
.word 513
|
|
.faraddr 197121
|
|
.dword 67305985
|
|
.byte %00000001
|
|
.word %0000001000000001
|
|
.faraddr %000000110000001000000001
|
|
.dword %00000100000000110000001000000001
|
|
.byte 255
|
|
.word 65279
|
|
.faraddr 16645887
|
|
.dword 4244504319
|
|
|
|
skipdata: lda #'h'
|
|
lda 'h'
|
|
lda a:'h'
|
|
lda #$1f
|
|
lda #' '
|
|
lda #'"'
|
|
lda #$27
|
|
lda #'~'
|
|
lda #$7f
|
|
lda #$80
|
|
lda #$9f
|
|
lda #' ' | $80
|
|
lda #'"' | $80
|
|
lda #$a7
|
|
lda #'~' | $80
|
|
lda #$ff
|
|
jmp L10A4
|
|
|
|
more_ascii: .byte 'h'
|
|
.byte $80
|
|
.word $6868
|
|
.byte $80
|
|
.word skipdata
|
|
.faraddr skipdata
|
|
.dbyt skipdata
|
|
.byte <more_ascii
|
|
.byte >more_ascii
|
|
.word more_ascii
|
|
.faraddr more_ascii
|
|
.dword more_ascii
|
|
.dbyt more_ascii
|
|
.byte '['
|
|
.byte '{'
|
|
.byte '|'
|
|
.byte '}'
|
|
.byte ','
|
|
.byte '[' | $80
|
|
.byte '{' | $80
|
|
.byte '|' | $80
|
|
.byte '}' | $80
|
|
.byte ',' | $80
|
|
|
|
L10A4: rts
|
|
|