c64 autoload viewer

This commit is contained in:
Thomas Bernard
2019-10-22 23:59:06 +02:00
parent a8e0beba6d
commit 796db2003d
4 changed files with 308 additions and 0 deletions

29
misc/c64viewer/test.asm Normal file
View File

@@ -0,0 +1,29 @@
; vim:ts=8 sw=8:
.word $0801
.org $0801
.word next, 1911 ; next basic line and line number
.byte $9e,"2061",0 ; SYS2061
next: .word 0 ; end of basic program
start:
jsr $e544
lda #$00
sta $d020 ; border
sta $d021 ; background
ldx #$00
loop:
lda text,x
sec
sbc #$40
sta $0400+40*12,x
inx
cpx #40
bne loop
wait:
;jmp wait
;jsr $ffcf
jsr $ffe4 ; GETIN
beq wait
rts
text:
.byte " HELLO WORLD "