From 5f05ff8f7bc41bfeed0887f224d43d3abf0d5c75 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Thu, 7 Dec 2023 15:25:17 +0100 Subject: stage1: print boot drive --- stage1/main.asm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/stage1/main.asm b/stage1/main.asm index 97ff7c7..ce4ead4 100644 --- a/stage1/main.asm +++ b/stage1/main.asm @@ -20,14 +20,20 @@ boot: mov ebx, .msg call print_str + ; print boot drive + pusha + movzx eax, dl + call print_hex + call newline + popa + ; load stage2 and stage3 call load_stages ; jump into stage2 jmp KSTART -.msg: db 10, 13, "nyax stage1", 10, 13, 0 - +.msg: db 10, 13, "nyax stage1", 10, 13, "boot drive: 0x", 0 load_stages: mov ebx, .msg -- cgit v1.2.3