From bfe5f49d0ff1e998e1468bfb6a094b4c5ba9c46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Szatm=C3=A1ry?= <40998048+Zotyamester@users.noreply.github.com> Date: Wed, 8 Jul 2020 11:30:00 +0200 Subject: [PATCH] Set AH to WHITE_ON_BLACK outside of the loop --- 08-32bit-print/32bit-print.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/08-32bit-print/32bit-print.asm b/08-32bit-print/32bit-print.asm index e940aa9..bd6e295 100644 --- a/08-32bit-print/32bit-print.asm +++ b/08-32bit-print/32bit-print.asm @@ -7,10 +7,10 @@ WHITE_ON_BLACK equ 0x0f ; the color byte for each character print_string_pm: pusha mov edx, VIDEO_MEMORY + mov ah, WHITE_ON_BLACK print_string_pm_loop: mov al, [ebx] ; [ebx] is the address of our character - mov ah, WHITE_ON_BLACK cmp al, 0 ; check if end of string je print_string_pm_done