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.
111 lines
2.4 KiB
ArmAsm
111 lines
2.4 KiB
ArmAsm
.setcpu "65816"
|
|
.org $021000
|
|
.a8
|
|
.i8
|
|
clc
|
|
xce
|
|
sep #$ff
|
|
jsr L21100 & $ffff
|
|
jsr L21107 & $ffff
|
|
jmp L22000 & $ffff
|
|
|
|
.org $021100
|
|
L21100: bit L21100 & $ffff
|
|
L21103: lda #$11
|
|
ldx #$11
|
|
L21107: ldy #$11
|
|
per L21103
|
|
bra L21103
|
|
|
|
.org $021100
|
|
@L21100_0: bit @L21100_0 & $ffff
|
|
lda #$22
|
|
@L21105: ldx #$22
|
|
ldy #$22
|
|
per @L21105
|
|
jmp @L21105 & $ffff
|
|
|
|
.org $021100
|
|
@L21100_1: bit @L21100_1 & $ffff
|
|
lda #$33
|
|
ldx #$33
|
|
@L21107_0: ldy #$33
|
|
per @L21107_0
|
|
bra @L21107_0
|
|
|
|
.org $022000
|
|
L22000: bit L22000 & $ffff
|
|
beq $022018
|
|
bra @L22020
|
|
|
|
.org $022020
|
|
@L22020: bit @L22020 & $ffff
|
|
beq $022029
|
|
brl @L22080
|
|
|
|
@offend: nop
|
|
.org $022080
|
|
@L22080: bit @L22080 & $ffff
|
|
lda @offend & $ffff
|
|
jsr @offend & $ffff
|
|
lda $2029
|
|
jsr $2029
|
|
lda @L22080 & $ffff -1
|
|
jsr @L22080 & $ffff -1
|
|
lda @L22080 & $ffff
|
|
jsr @L22080 & $ffff
|
|
lda $00
|
|
beq @L22100
|
|
.byte $ad
|
|
|
|
.org $022100
|
|
@L22100: nop
|
|
nop
|
|
jmp @L23000 & $ffff
|
|
|
|
.org $022800
|
|
.byte $00
|
|
.byte $28
|
|
.res 14,$00
|
|
.org $022820
|
|
.res 18,$00
|
|
|
|
.org $023000
|
|
@L23000: bit @L23000 & $ffff
|
|
lda #$44
|
|
ldx #$44
|
|
ldy #$44
|
|
brl @fwd
|
|
|
|
@ulabel: .byte $00
|
|
.byte $01
|
|
.org $023100
|
|
.byte $02
|
|
|
|
@fwd: bit @fwd & $ffff
|
|
lda @ulabel & $ffff
|
|
lda @ulabel & $ffff +1
|
|
lda $300e
|
|
lda $300f
|
|
lda @fwd & $ffff -1
|
|
beq @L23182
|
|
.byte $ea
|
|
.byte $ea
|
|
.org $023180
|
|
.byte $00
|
|
.byte $01
|
|
|
|
@L23182: bit @L23182 & $ffff
|
|
lda @label1 & $ffff
|
|
lda @label1 & $ffff +1
|
|
lda @label1 & $ffff +112
|
|
bra @L23200
|
|
|
|
@label1: .byte $ea
|
|
.byte $ea
|
|
|
|
.org $023200
|
|
@L23200: bit @L23200 & $ffff
|
|
.byte $00
|
|
.byte $01
|