1
0
mirror of https://github.com/fadden/6502bench.git synced 2025-02-27 19:29:08 +00:00
6502bench/SourceGen/SGTestData/Source/20090-notes-and-comments.S
Andy McFadden 83da0d952c Fancy comments, part 1
Added a "fancy" flag to MultiLineComment.  If set, we will use
formatting commands embedded in the text itself.  The max width pop-up
and "boxed" flag will be ignored in favor of width and boxing
directives.  (See issue #111.)

The current "fancy" formatter is just a placeholder that folds lines
every 10 characters.

Removed FormattedMlcCache (added two changes back).  Caching the
rendered string list in the MLC itself is simpler and more efficient
than having a separate cache, and it works for Notes as well.

Added anchors for more comments in the 20090 test.
2024-07-04 17:25:21 -07:00

80 lines
1.9 KiB
ArmAsm

; Copyright 2018 faddenSoft. All Rights Reserved.
; See the LICENSE.txt file for distribution terms (Apache 2.0).
;
; Assembler: Merlin 32
; Everything of interest is in the notes and comments. We're just
; providing some anchor points.
plataddr equ $3000 ;defined in TestSyms
org $1000
; places to put "basic" comments
lda #$01
lda #$02
lda #$03
lda #$04
lda #$05
lda #$06
lda #$07
lda #$08
lda #$09
lda #$0a
lda #$0b
lda #$0c
lda #$0d
lda #$0e
lda #$0f
jmp next
nop
; multi-line operand
hex 000102030405060708090a0b0c0d0e0f
hex 000102030405060708090a0b0c0d0e0f
hex 000102030405060708090a0b0c0d0e0f
hex 000102030405060708090a0b0c0d0e0f
next
bit plataddr ;pull in platform symbol, with comment
lda #$10
lda #$11
lda #$12
lda #$13
lda #$14
lda #$15
lda #$16
lda #$17
lda #$18
lda #$19
lda #$1a
lda #$1b
lda #$1c
lda #$1d
lda #$1e
lda #$1f
lda #$20
lda #$21
lda #$22
lda #$23
lda #$24
lda #$25
lda #$26
lda #$27
lda #$28
lda #$29
lda #$2a
lda #$2b
lda #$2c
lda #$2d
lda #$2e
lda #$2f
jmp done
done rts