From a4bf267c947e75c511225dec5f750ee354be2bf4 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Sun, 10 Jan 2016 19:39:36 -0800 Subject: [PATCH] Cleanup char inspect 3 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3969d11..dd6386f 100644 --- a/README.md +++ b/README.md @@ -979,6 +979,7 @@ Let's fix it up to print the hex value of the current character we are inspectin 1051:C8 INY ; IncCursorCol() 1052:20 3B 03 JSR $033B ; DrawCharCol() 1055:60 RTS + .ORG $358 1058:30 31 32 33 ASC "0123456789ABCDEF" 105C:34 35 36 37 1060:38 39 41 42 @@ -1015,9 +1016,11 @@ Let's use IncCursorCol() to automatically advance the cusor. We'll also add a s ; OUTPUT: The Y-Register (cursor column) is automatically incremented. 310:20 3B 03 JSR DrawCharCol 313:4C 70 03 JMP IncCursorCol +``` - 1010:20 37 10 JSR $1037 +And the new code to draw a space before the hex num: +```assembly 1037:48 PHA ; save c 1038:20 10 03 JSR PrintChar ; 103B:A9 20 LDA ' ' ; Draw whitespace @@ -1050,7 +1053,6 @@ Let's use IncCursorCol() to automatically advance the cusor. We'll also add a s Enter in: 310:20 3B 03 4C 70 03 - 1010:20 37 10 1037:48 1038:20 10 03 A9 20 20 10 03 1040:68 48 6A 6A 6A 6A 20 4D