Set AH to WHITE_ON_BLACK outside of the loop

pull/166/head
Zoltán Szatmáry 4 years ago committed by GitHub
parent 7aff64740e
commit bfe5f49d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save