aboutsummaryrefslogtreecommitdiff
path: root/console.s
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-02-17 23:47:59 -0500
committerB. Watson <yalhcru@gmail.com>2016-02-17 23:47:59 -0500
commit3abf7993ce2d2deb1c0596f3404b2bfa27324564 (patch)
tree67b4cb01fb3b303a14edf41f6ffa56243d33af3a /console.s
parentb2f7604ac51db075201ea0aa40d002d3d5e7e071 (diff)
downloadtaipan-3abf7993ce2d2deb1c0596f3404b2bfa27324564.tar.gz
make the cursor behave *much* better, via custom conio function
Diffstat (limited to 'console.s')
-rw-r--r--console.s16
1 files changed, 15 insertions, 1 deletions
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