mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-01 22:50:35 +00:00
149e763821
The documentation for 64tass says you're required to pass "--ascii" when the source file is ASCII (as opposed to PETSCII). We were ignoring this, but it turns out that everything works a bit better if we don't. So we now pass "--ascii" on the command line, and add a two-line character encoding definition to every file that is generated with ASCII as the default encoding. The sg_petscii and sg_screen encodings go away, as PETSCII is now the default, and we can use the built-in "screen" encoding.
38 lines
684 B
ArmAsm
38 lines
684 B
ArmAsm
.cpu "6502"
|
|
.enc sg_ascii
|
|
.cdef $20,$7e,$20
|
|
* = $1000
|
|
.byte $03
|
|
.byte $02
|
|
|
|
L1002 bit L1002
|
|
.byte $2c
|
|
lda #$11
|
|
nop
|
|
.byte $2c
|
|
L100A ldx #$ff
|
|
nop
|
|
jsr L100A
|
|
nop
|
|
.byte $2c
|
|
L1012 ldx #$ff
|
|
nop
|
|
jsr L1012
|
|
jsr $2456
|
|
L101B .dword $22a211a9
|
|
jsr L101B
|
|
jsr L1028
|
|
jsr $2456
|
|
L1028 .dword $44a233a9
|
|
jsr L1037
|
|
jsr L103A
|
|
nop
|
|
lda $2456
|
|
rts
|
|
|
|
L1037 jsr $2456
|
|
L103A lda #$55
|
|
ldx #$66
|
|
rts
|
|
|