summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
Diffstat (limited to 'programs')
-rw-r--r--programs/pos-check.s12
-rw-r--r--programs/scr-to-buf.s7
2 files changed, 19 insertions, 0 deletions
diff --git a/programs/pos-check.s b/programs/pos-check.s
new file mode 100644
index 0000000..315147b
--- /dev/null
+++ b/programs/pos-check.s
@@ -0,0 +1,12 @@
+cmd_clr:
+ lda scr_row
+ cmp #23
+ beq cmd_vwrap
+ inc scr_row
+ jmp cmd_clr_end
+cmd_vwrap:
+ jsl rset_row
+cmd_clr_end:
+ jsl update_pos
+ lda #0
+ rtl
diff --git a/programs/scr-to-buf.s b/programs/scr-to-buf.s
new file mode 100644
index 0000000..1787dc3
--- /dev/null
+++ b/programs/scr-to-buf.s
@@ -0,0 +1,7 @@
+scr_to_buf:
+ tax
+ mul #80
+ adc scr_col
+ tay
+ txa
+ rtl