From 34b9bda535d475dd80fd70481fb7ba525b8c58bd Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 20 Feb 2020 18:18:50 -0500 Subject: Finished SuBAsm's screen editor. Which I am now calling, SuBEditor. --- programs/hex-to-bcd.s | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 programs/hex-to-bcd.s (limited to 'programs/hex-to-bcd.s') diff --git a/programs/hex-to-bcd.s b/programs/hex-to-bcd.s deleted file mode 100644 index 53a3ff2..0000000 --- a/programs/hex-to-bcd.s +++ /dev/null @@ -1,7 +0,0 @@ -hex_to_bcd: - pla #1 ; Get argument. - div #10 ; Divide A by 10. - lsl #4 ; Shift the result left by 4 bits. - oab ; Or the result, with the remainder. - pha #1 ; Push the packed BCD result to the stack. - rts ; Return the result. -- cgit v1.2.3-13-gbd6f