From d7d858e9e68b746f3014b9df132f445760baa8a1 Mon Sep 17 00:00:00 2001 From: FreeByrd Date: Sun, 5 Jul 2020 13:55:32 -0400 Subject: [PATCH] changed the way notes are displayed on the screen becuase the old way was stupid --- README.md | 2 -- pcano.asm | 9 +++------ pcano.img | Bin 512 -> 512 bytes 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c2544cf..cb500d2 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,6 @@ Use the keys a, s, d, f, j, k, l, and ; to play notes. Use the keys q, w, and e to change between three different octaves. -Use the key z to clear the screen. - the Star Wars theme is a, j, f, d, s, ;, j, f, d, s, ;, j, f, d, f, s. ASSEMBLING: diff --git a/pcano.asm b/pcano.asm index 7925d91..300ee25 100644 --- a/pcano.asm +++ b/pcano.asm @@ -1,15 +1,12 @@ -clear: - mov ah, 00h ; clears the screen and sets the cursor to the first position on the screen +input: ; sets cursor to 1st position and clears the screen + mov ah, 00h mov al, 03h int 10h mov ah, 02h mov dl, 0 int 10h - -input: ; takes user input + ; takes user input in al, 60h - cmp al, 44 - je clear cmp al, 18 je lower cmp al, 16 diff --git a/pcano.img b/pcano.img index 8f579f8fac861afb6b114528ebb6632ce9c84d36..a6bae9691f12dc706ceef3339ae98f70cea94cae 100644 GIT binary patch delta 48 zcmV-00MGw`1b_q%v;eRJ%@DK#vH;Bx