diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-12-07 15:25:17 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-12-07 15:25:17 +0100 |
commit | 5f05ff8f7bc41bfeed0887f224d43d3abf0d5c75 (patch) | |
tree | e4d099f18299470339c4917484fc28d4eda2b03b | |
parent | 7d1991f8e6475f774263bdc5a0be15c9c0b79068 (diff) | |
download | cuddles-5f05ff8f7bc41bfeed0887f224d43d3abf0d5c75.tar.xz |
stage1: print boot drive
-rw-r--r-- | stage1/main.asm | 10 |
1 files 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 |