Skip to content
Snippets Groups Projects
Commit 39da2f46 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix for bootloader on new BIOS (don't know exactly why though)

parent cc1aee98
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,13 @@ boot: ; dl comes with disk
call print
call print_line
mov bh, 0
mov bl, [disk]
mov bx, (startup_start - boot) / 512
call print_num
call print_line
mov bx, startup_start
call print_num
call print_line
mov eax, (startup_start - boot) / 512
mov bx, startup_start
......
......@@ -2,18 +2,16 @@ SECTION .text
USE16
; provide function for printing in x86 real mode
; a newline
newline: db 13,10,0
; print a string and a newline
; IN
; si: points at zero-terminated String
; CLOBBER
; ax
print_line:
mov si, newline
jmp print
mov al, 13
call print_char
mov al, 10
jmp print_char
; print a string
; IN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment