From 85da0e6b6535269a7086408482e2a41741e4ea92 Mon Sep 17 00:00:00 2001 From: David Stancu Date: Sun, 4 Feb 2018 21:25:37 -0500 Subject: [PATCH] figure out how to modeset but still need to toggle to get full bank a for adding, unelegant perhaps? --- src/main.S | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/main.S b/src/main.S index af4ce54..cccab6d 100644 --- a/src/main.S +++ b/src/main.S @@ -5,7 +5,7 @@ ; ensure 16-bit mode (unnecessary?) clc xce - rep #$20 + rep #$30 phk plb @@ -23,7 +23,8 @@ ldal $00C054 ; select text page 1 (there are 2) ldal $00C056 ; select "low res" graphics -* rep #$30 + rep #$30 + sep #$20 ; show the current char on screen ; read keyboard then hit strobe to reset @@ -49,16 +50,27 @@ keydown nop beq right jmp dispchar -up nop +up clc + cpx #1488 + beq rtsout + rep #$30 + pha + txa + sbc #128 + tax + pla + sep #$20 jmp rtsout down clc cpx #1488 beq rtsout + rep #$30 pha txa adc #128 tax pla + sep #$20 jmp rtsout left clc @@ -269,6 +281,21 @@ brkboi brk + + + + + + + + + + + + + + +