From a62189176e976c131fb73d787ed137967ca4f1a9 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 8 Aug 2021 19:16:56 +0200 Subject: [PATCH] Comments --- src/pm/vga/print.asm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pm/vga/print.asm b/src/pm/vga/print.asm index c440944..3aa23e5 100644 --- a/src/pm/vga/print.asm +++ b/src/pm/vga/print.asm @@ -8,17 +8,17 @@ vga_print: mov edx, VIDEO_MEM vga_print_loop: - mov al, [ebx] - mov ah, 0x8f + mov al, [ebx] ; Pointer to char + mov ah, 0x8f ; Color code - cmp al, ASCII_END - je vga_print_return + cmp al, ASCII_END ; Check if end of string + je vga_print_return ; If end then return - mov [edx], ax - inc ebx + mov [edx], ax ; Move charpos + inc ebx ; Increment to next add edx, 2 - jmp vga_print_loop + jmp vga_print_loop ; Loop back until end of string vga_print_return: popa