mirror of
https://github.com/tailix/loadwarka.git
synced 2024-11-11 13:50:54 -05:00
Use sector 4
This commit is contained in:
parent
2f397f213f
commit
8acc4e5eb5
1 changed files with 19 additions and 5 deletions
|
@ -32,15 +32,19 @@ size: .word _end - _start
|
|||
|
||||
hello2: .string "Hello from stage 2!\r\n"
|
||||
hello3: .string "Hello from sector 3!\r\n"
|
||||
hello4: .string "Hello from sector 4!\r\n"
|
||||
|
||||
main:
|
||||
mov $hello2, %si
|
||||
call print_str
|
||||
|
||||
mov $teststr, %si
|
||||
mov $teststr3, %si
|
||||
call print_str
|
||||
|
||||
ljmp $0, $additional
|
||||
mov $teststr4, %si
|
||||
call print_str
|
||||
|
||||
ljmp $0, $sector3
|
||||
|
||||
do_ret:
|
||||
ret
|
||||
|
@ -60,14 +64,24 @@ print_str:
|
|||
call print_char
|
||||
jmp print_str
|
||||
|
||||
.fill 437, 1, 0
|
||||
.fill 512, 1, 0
|
||||
|
||||
teststr: .string "Test string\r\n"
|
||||
teststr3: .string "Test string from sector 3\r\n"
|
||||
|
||||
additional:
|
||||
sector3:
|
||||
mov $hello3, %si
|
||||
call print_str
|
||||
|
||||
ljmp $0, $sector4
|
||||
|
||||
.fill 512, 1, 0
|
||||
|
||||
teststr4: .string "Test string from sector 4\r\n"
|
||||
|
||||
sector4:
|
||||
mov $hello4, %si
|
||||
call print_str
|
||||
|
||||
hang:
|
||||
cli
|
||||
hlt
|
||||
|
|
Loading…
Reference in a new issue