mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-26 06:49:19 +00:00
38d3adbb08
I didn't think it made sense, but I found something that used it, so apparently it's a thing. This updates the operand editor to let you choose PETSCII+DCI, and updates the assemblers to handle it correctly (really just 64tass, since the others either don't have a DCI directive or don't deal with PETSCII at all). Changed the char-encoding sample from "bad dcI" to "pet dcI", and updated the documentation.
275 lines
6.4 KiB
ArmAsm
275 lines
6.4 KiB
ArmAsm
;Project edited to mark some non-ASCII operands as ASCII.
|
|
org $1000
|
|
clc
|
|
xce
|
|
sep #$30
|
|
lda #'A'
|
|
lda #"A"
|
|
lda #$c1
|
|
lda #$41
|
|
ldx #'a'
|
|
ldx #"a"
|
|
ldx #$41
|
|
ldx #$01
|
|
lda #$7f
|
|
lda #$7f
|
|
lda #$7f
|
|
lda #$7f
|
|
lda #$0d
|
|
rep #$30
|
|
mx %00
|
|
lda #'B'
|
|
lda #"B"
|
|
lda #$c2
|
|
lda #$42
|
|
sep #$30
|
|
mx %11
|
|
rts
|
|
|
|
dfb 'C'
|
|
dfb "C"
|
|
dfb $c3
|
|
dfb $43
|
|
dw 'd'
|
|
dw "d"
|
|
dw $44
|
|
dw $04
|
|
ddb 'E'
|
|
ddb "E"
|
|
ddb $c5
|
|
ddb $45
|
|
dfb $80
|
|
asc 'low ASCII str'
|
|
asc "high ASCII str"
|
|
dfb $80
|
|
hex d0c5d4d3c3c9c920535452
|
|
dfb $80
|
|
hex 53031205050e20430f040520131412
|
|
dfb $82
|
|
asc 07,'Low ASCII CRLF',0d0a
|
|
dfb $82
|
|
asc 87,"High ASCII CRLF",8d8a
|
|
dfb $82
|
|
hex 93d0c5d4d3c3c9c920574954482096434f4e54524f4c0520434f4445530d
|
|
dfb $83
|
|
asc ' !"#$%&',27,'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWX'
|
|
asc 'YZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'
|
|
dfb $83
|
|
asc " !",a2,"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWX"
|
|
asc "YZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
|
|
dfb $83
|
|
hex 202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f
|
|
hex 40c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9da5b
|
|
dfb $5c
|
|
dfb $5d
|
|
dfb $5e
|
|
dfb $5f
|
|
dfb $60
|
|
hex 4142434445464748494a4b4c4d4e4f505152535455565758595a
|
|
dfb $7b
|
|
dfb $7c
|
|
dfb $7d
|
|
dfb $7e
|
|
dfb $83
|
|
hex 202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f
|
|
hex 004142434445464748494a4b4c4d4e4f505152535455565758595a1b
|
|
dfb $1c
|
|
dfb $1d
|
|
dfb $1e
|
|
dfb $1f
|
|
dfb $40
|
|
hex 0102030405060708090a0b0c0d0e0f101112131415161718191a
|
|
dfb $7b
|
|
dfb $7c
|
|
dfb $7d
|
|
dfb $7e
|
|
dfb $84
|
|
hex c9c9c3d3d4c5d02045535245564552
|
|
dfb $84
|
|
hex 4e554c4c205445524d20d0c5d4d3c3c9c900
|
|
dfb $84
|
|
hex d4484953204e554c4c2d5445524d494e4154454420535452494e472049532054
|
|
hex 4f4f204c4f4e4720544f20464954204f4e20412053494e474c45204c494e452c
|
|
hex 20414e442057494c4c2042452053504c49542e00
|
|
dfb $84
|
|
hex 13d0c5d4d3c3c9c92057495448204c454e475448
|
|
dfb $84
|
|
hex 1400d0c5d4d3c3c9c92057495448204c454e47544832
|
|
dfb $84
|
|
hex 504554204443c9
|
|
dfb $84
|
|
hex 05040f43200e05051203532005131205160512
|
|
dfb $84
|
|
hex 1753031205050e20430f04052017091408200c050e071408
|
|
dfb $84
|
|
hex 180053031205050e20430f04052017091408200c050e07140832
|
|
dfb $84
|
|
hex 53031205050e20430f0405204443c9
|
|
dfb $84
|
|
dfb $85
|
|
;$00-ff block
|
|
dfb $00
|
|
dfb $01
|
|
dfb $02
|
|
dfb $03
|
|
dfb $04
|
|
dfb $05
|
|
dfb $06
|
|
dfb $07
|
|
dfb $08
|
|
dfb $09
|
|
dfb $0a
|
|
dfb $0b
|
|
dfb $0c
|
|
dfb $0d
|
|
dfb $0e
|
|
dfb $0f
|
|
dfb $10
|
|
dfb $11
|
|
dfb $12
|
|
dfb $13
|
|
dfb $14
|
|
dfb $15
|
|
dfb $16
|
|
dfb $17
|
|
dfb $18
|
|
dfb $19
|
|
dfb $1a
|
|
dfb $1b
|
|
dfb $1c
|
|
dfb $1d
|
|
hex 1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d
|
|
hex 3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b
|
|
dfb $5c
|
|
dfb $5d
|
|
dfb $5e
|
|
dfb $5f
|
|
dfb $60
|
|
dfb $61
|
|
dfb $62
|
|
dfb $63
|
|
dfb $64
|
|
dfb $65
|
|
dfb $66
|
|
dfb $67
|
|
dfb $68
|
|
dfb $69
|
|
dfb $6a
|
|
dfb $6b
|
|
dfb $6c
|
|
dfb $6d
|
|
dfb $6e
|
|
dfb $6f
|
|
dfb $70
|
|
dfb $71
|
|
dfb $72
|
|
dfb $73
|
|
dfb $74
|
|
dfb $75
|
|
dfb $76
|
|
dfb $77
|
|
dfb $78
|
|
dfb $79
|
|
dfb $7a
|
|
dfb $7b
|
|
dfb $7c
|
|
dfb $7d
|
|
dfb $7e
|
|
dfb $7f
|
|
dfb $80
|
|
dfb $81
|
|
dfb $82
|
|
dfb $83
|
|
dfb $84
|
|
dfb $85
|
|
dfb $86
|
|
dfb $87
|
|
dfb $88
|
|
dfb $89
|
|
dfb $8a
|
|
dfb $8b
|
|
dfb $8c
|
|
dfb $8d
|
|
dfb $8e
|
|
dfb $8f
|
|
dfb $90
|
|
dfb $91
|
|
dfb $92
|
|
dfb $93
|
|
dfb $94
|
|
hex 95969798999a9b9c
|
|
dfb $9d
|
|
dfb $9e
|
|
dfb $9f
|
|
dfb $a0
|
|
dfb $a1
|
|
dfb $a2
|
|
dfb $a3
|
|
dfb $a4
|
|
dfb $a5
|
|
dfb $a6
|
|
dfb $a7
|
|
dfb $a8
|
|
dfb $a9
|
|
dfb $aa
|
|
dfb $ab
|
|
dfb $ac
|
|
dfb $ad
|
|
dfb $ae
|
|
dfb $af
|
|
dfb $b0
|
|
dfb $b1
|
|
dfb $b2
|
|
dfb $b3
|
|
dfb $b4
|
|
dfb $b5
|
|
dfb $b6
|
|
dfb $b7
|
|
dfb $b8
|
|
dfb $b9
|
|
dfb $ba
|
|
dfb $bb
|
|
dfb $bc
|
|
dfb $bd
|
|
dfb $be
|
|
dfb $bf
|
|
dfb $c0
|
|
hex c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9da
|
|
dfb $db
|
|
dfb $dc
|
|
dfb $dd
|
|
dfb $de
|
|
dfb $df
|
|
dfb $e0
|
|
dfb $e1
|
|
dfb $e2
|
|
dfb $e3
|
|
dfb $e4
|
|
dfb $e5
|
|
dfb $e6
|
|
dfb $e7
|
|
dfb $e8
|
|
dfb $e9
|
|
dfb $ea
|
|
dfb $eb
|
|
dfb $ec
|
|
dfb $ed
|
|
dfb $ee
|
|
dfb $ef
|
|
dfb $f0
|
|
dfb $f1
|
|
dfb $f2
|
|
dfb $f3
|
|
dfb $f4
|
|
dfb $f5
|
|
dfb $f6
|
|
dfb $f7
|
|
dfb $f8
|
|
dfb $f9
|
|
dfb $fa
|
|
dfb $fb
|
|
dfb $fc
|
|
dfb $fd
|
|
dfb $fe
|
|
dfb $ff
|