From 3abf7993ce2d2deb1c0596f3404b2bfa27324564 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 17 Feb 2016 23:47:59 -0500 Subject: make the cursor behave *much* better, via custom conio function --- console.s | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'console.s') diff --git a/console.s b/console.s index 7be2fb3..2ad5e58 100644 --- a/console.s +++ b/console.s @@ -1,7 +1,7 @@ .include "atari.inc" - .export _clrtobot, _clrtoeol, _clrtoline, _cspaces + .export _clrtobot, _clrtoeol, _clrtoline, _cspaces, _cblank .import mul40 ; from cc65's runtime .importzp tmp3 ; ditto @@ -80,3 +80,17 @@ _cspaces: dec tmp3 bne @lp rts + +_cblank: + tax + lda COLCRS + pha + lda ROWCRS + pha + txa + jsr _cspaces + pla + sta ROWCRS + pla + sta COLCRS + rts -- cgit v1.2.3