From 641a0a29230b27ab318348c9115e6a2febc9c765 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 27 Jan 2022 06:06:12 +0500 Subject: [PATCH] Print a string from second sector --- src/x86_stage2.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/x86_stage2.S b/src/x86_stage2.S index d94989f..cf842dc 100644 --- a/src/x86_stage2.S +++ b/src/x86_stage2.S @@ -38,6 +38,9 @@ main: mov $STAGE2_ADDR(hello), %si call print_str + mov $STAGE2_ADDR(teststr), %si + call print_str + hang: cli hlt @@ -61,6 +64,8 @@ print_str: call print_char jmp print_str -.fill 512, 1, 0 +.fill 437, 1, 0 + +teststr: .string "Test string\r\n" _end: