summaryrefslogtreecommitdiff
path: root/stage1/main.asm
diff options
context:
space:
mode:
Diffstat (limited to 'stage1/main.asm')
-rw-r--r--stage1/main.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/stage1/main.asm b/stage1/main.asm
index c51fc59..33264b0 100644
--- a/stage1/main.asm
+++ b/stage1/main.asm
@@ -19,6 +19,9 @@ boot:
mov ebx, .msg
call print_str
+ ; save offset of the file system
+ mov dword[0x1000-10-8], KSIZE+512
+
; print boot drive
pusha
movzx eax, dl
@@ -145,5 +148,8 @@ load_stages:
%include "stage1/print.asm"
+times 440-($-$$) db 0
+db "hugs"
+
times 510-($-$$) db 0
dw 0xAA55