Print a string from second sector

This commit is contained in:
Alex Kotov 2022-01-27 06:06:12 +05:00
parent f72c3e0a26
commit 641a0a2923
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 6 additions and 1 deletions

View File

@ -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: