mirror of https://github.com/tailix/loadwarka.git
Jump to sector 3
This commit is contained in:
parent
969201e229
commit
b1c943c245
|
@ -32,19 +32,17 @@ _start:
|
||||||
.align 2
|
.align 2
|
||||||
size: .word _end - _start
|
size: .word _end - _start
|
||||||
|
|
||||||
hello: .string "Hello from stage 2!\r\n"
|
hello2: .string "Hello from stage 2!\r\n"
|
||||||
|
hello3: .string "Hello from sector 3!\r\n"
|
||||||
|
|
||||||
main:
|
main:
|
||||||
mov $STAGE2_ADDR(hello), %si
|
mov $STAGE2_ADDR(hello2), %si
|
||||||
call print_str
|
call print_str
|
||||||
|
|
||||||
mov $STAGE2_ADDR(teststr), %si
|
mov $STAGE2_ADDR(teststr), %si
|
||||||
call print_str
|
call print_str
|
||||||
|
|
||||||
hang:
|
ljmp $0, $STAGE2_ADDR(additional)
|
||||||
cli
|
|
||||||
hlt
|
|
||||||
jmp hang
|
|
||||||
|
|
||||||
do_ret:
|
do_ret:
|
||||||
ret
|
ret
|
||||||
|
@ -68,4 +66,13 @@ print_str:
|
||||||
|
|
||||||
teststr: .string "Test string\r\n"
|
teststr: .string "Test string\r\n"
|
||||||
|
|
||||||
|
additional:
|
||||||
|
mov $STAGE2_ADDR(hello3), %si
|
||||||
|
call print_str
|
||||||
|
|
||||||
|
hang:
|
||||||
|
cli
|
||||||
|
hlt
|
||||||
|
jmp hang
|
||||||
|
|
||||||
_end:
|
_end:
|
||||||
|
|
Loading…
Reference in New Issue