mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-11 13:50:13 +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.
90 lines
4.0 KiB
ArmAsm
90 lines
4.0 KiB
ArmAsm
;***************************************
|
||
;* Old school boxed output header. *
|
||
;* Brk *
|
||
;* multiple lines yay. How about a *
|
||
;* hy-phenated word? *
|
||
;* Looonglonglonglonglonglonglonglongl *
|
||
;* onglonglongword. *
|
||
;***************************************
|
||
;* Throw in a line divider. These *
|
||
;* aren't: *
|
||
;* *! *
|
||
;* * *
|
||
;* &XYZ *
|
||
;* *
|
||
;***************************************
|
||
.setcpu "6502"
|
||
plataddr = $3000 ;address only in platform file
|
||
|
||
;Short, unboxed comment here!!
|
||
;Two spaces after. More hyp-
|
||
;hens?
|
||
.org $1000
|
||
lda #$01 ;Comment!
|
||
;Comment rulers can be helpful in findin the edges of notes. Comments are hyph-
|
||
;enatingly fun. Like the note, this goes out to 80 columns.
|
||
lda #$02 ;&another comment with &&s!
|
||
;Down to 64 columns this time. Why 64? Why not 64. A rose, by
|
||
;any other name, would break the line at the same place. Or hy-
|
||
;phen split.
|
||
lda #$03
|
||
;Ah, the classic 40-column limitation...
|
||
;brings back memories. Of, you know, h-
|
||
;yphenated things.
|
||
lda #$04
|
||
;Thirty columns. 'cause forty
|
||
;felt like too many. Oh, hyp-
|
||
;henation!
|
||
lda #$05
|
||
;*******************************************************************************
|
||
;* Short box comment, 80 cols. *
|
||
;*******************************************************************************
|
||
lda #$06
|
||
;***************************************************************
|
||
;* *
|
||
;* Choppy *
|
||
;* *
|
||
;* box *
|
||
;* *
|
||
;* comment *
|
||
;* *
|
||
;* 64 cols *
|
||
;* *
|
||
;***************************************************************
|
||
lda #$07
|
||
;***************************************************************
|
||
;* Some non-ASCII stuff: *
|
||
;* †•<E280A0>␇ *
|
||
;* (right side of box looks pushed over on-screen because font *
|
||
;* isn't fully mono) *
|
||
;***************************************************************
|
||
lda #$08
|
||
;***************************************
|
||
;* Specific line break case at end *
|
||
;* of. Sentence. *
|
||
;* Alternate version for semicolon zz. *
|
||
;* Output. *
|
||
;* *
|
||
;* Same thing but with three spaces *
|
||
;* zz. Three! *
|
||
;* Again with the three spces between. *
|
||
;* Things. *
|
||
;* *
|
||
;* Try to make it the very last *
|
||
;* thing.. *
|
||
;***************************************
|
||
lda #$09
|
||
lda #$0a
|
||
lda #$0b
|
||
lda #$0c
|
||
lda #$0d
|
||
lda #$0e
|
||
lda #$0f
|
||
bit plataddr ;Pull in plataddr to see the comment on the platform file entry.
|
||
rts
|
||
|
||
bytes: .byte $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b,$0c,$0d,$0e,$0f ;Comment at the end of a lengthy bulk hex item might overflow various things, but could be wrapped.
|
||
.byte $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b,$0c,$0d,$0e,$0f
|
||
.byte $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b,$0c,$0d,$0e,$0f
|
||
.byte $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b,$0c,$0d,$0e,$0f
|