|
|
@ -8,17 +8,17 @@ vga_print: |
|
|
|
mov edx, VIDEO_MEM |
|
|
|
mov edx, VIDEO_MEM |
|
|
|
|
|
|
|
|
|
|
|
vga_print_loop: |
|
|
|
vga_print_loop: |
|
|
|
mov al, [ebx] |
|
|
|
mov al, [ebx] ; Pointer to char |
|
|
|
mov ah, 0x8f |
|
|
|
mov ah, 0x8f ; Color code |
|
|
|
|
|
|
|
|
|
|
|
cmp al, ASCII_END |
|
|
|
cmp al, ASCII_END ; Check if end of string |
|
|
|
je vga_print_return |
|
|
|
je vga_print_return ; If end then return |
|
|
|
|
|
|
|
|
|
|
|
mov [edx], ax |
|
|
|
mov [edx], ax ; Move charpos |
|
|
|
inc ebx |
|
|
|
inc ebx ; Increment to next |
|
|
|
add edx, 2 |
|
|
|
add edx, 2 |
|
|
|
|
|
|
|
|
|
|
|
jmp vga_print_loop |
|
|
|
jmp vga_print_loop ; Loop back until end of string |
|
|
|
|
|
|
|
|
|
|
|
vga_print_return: |
|
|
|
vga_print_return: |
|
|
|
popa |
|
|
|
popa |
|
|
|