summaryrefslogtreecommitdiff
path: root/programs/scr-to-buf.s
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-01-23 13:55:00 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2020-01-23 13:55:00 -0500
commit63d5046ecabd5fd1524d3c4bc4590176c3b8a4eb (patch)
tree9cfc71691294d818e87bb2e0026f37b8ee8eb892 /programs/scr-to-buf.s
parent861d56e556b597115ad01b4b4cc0e5b932545ce9 (diff)
Start optimizing the emulator.
I also added a new input testing program called input-3.s, which contains a mostly working editor.
Diffstat (limited to 'programs/scr-to-buf.s')
-rw-r--r--programs/scr-to-buf.s7
1 files changed, 7 insertions, 0 deletions
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