From 83179b891e00514302dc2ad4f8d41815d961d725 Mon Sep 17 00:00:00 2001 From: Carlos Fenollosa Date: Wed, 8 Oct 2014 20:59:08 +0200 Subject: [PATCH] lesson 7, reading from disk --- 05-bootsector-functions-strings/boot_sect_print_hex.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/05-bootsector-functions-strings/boot_sect_print_hex.asm b/05-bootsector-functions-strings/boot_sect_print_hex.asm index b52afed..b537ef8 100644 --- a/05-bootsector-functions-strings/boot_sect_print_hex.asm +++ b/05-bootsector-functions-strings/boot_sect_print_hex.asm @@ -9,7 +9,7 @@ print_hex: ; Numeric ASCII values: '0' (ASCII 0x30) to '9' (0x39), so just add 0x30 to byte N. ; For alphabetic characters A-F: 'A' (ASCII 0x41) to 'F' (0x46) we'll add 0x40 ; Then, move the ASCII byte to the correct position on the resulting string -loop: +hex_loop: cmp cx, 4 ; loop 4 times je end @@ -31,7 +31,7 @@ step2: ; increment index and loop add cx, 1 - jmp loop + jmp hex_loop end: ; prepare the parameter and call the function