From f6f5b4684c24a2bb300f9793830f8781ac90f57f Mon Sep 17 00:00:00 2001 From: David Stancu Date: Sun, 4 Feb 2018 20:06:37 -0500 Subject: [PATCH] rename project --- README.md | 4 ++-- src/main.S | 31 ++++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8708283..b88735e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# pon-gs -Apple IIgs simple pong game, with animation and sound. Written in 100% 658c16 assembly. +# mrbuffer +Apple IIgs simple lowres buffer text editor. Written in 65816 assembly. The commit history will show a different name; I had originally intended to write a pong game but found editing text a more suitable vehicle for learning the quirks of writing code for the GS. ## Getting Started diff --git a/src/main.S b/src/main.S index a96b17c..ce5f93a 100644 --- a/src/main.S +++ b/src/main.S @@ -28,6 +28,8 @@ ; show the current char on screen ; read keyboard then hit strobe to reset +*row da $0400 + ldx #0 ldal $00C010 @@ -52,7 +54,14 @@ keydown nop up nop jmp rtsout -down nop +down clc + cpx #1488 + beq rtsout + pha + txa + adc #128 + tax + pla jmp rtsout left clc @@ -68,6 +77,7 @@ right clc jmp rtsout dispchar stal $000400,X + inx jmp rtsout rtsout ldal $00C010 @@ -227,6 +237,25 @@ brkboi brk + + + + + + + + + + + + + + + + + + +