New bootloader concept: sys-like util to generate a boot sector
Right now only floppies are supported
This commit is contained in:
parent
19f598251d
commit
71c89387fc
4 changed files with 224 additions and 29 deletions
|
@ -1,19 +1,15 @@
|
|||
; COM program displaying hello world string
|
||||
; This is primarily for testing purposes
|
||||
org 0x0100
|
||||
org 0x0100
|
||||
|
||||
main:
|
||||
mov si, string
|
||||
mov ah, 0x0e
|
||||
xor bx, bx
|
||||
.loop:
|
||||
lodsb
|
||||
test al, al
|
||||
jz .end
|
||||
int 0x10
|
||||
jmp .loop
|
||||
.end:
|
||||
ret
|
||||
main: mov si, string
|
||||
mov ah, 0x0e
|
||||
xor bx, bx
|
||||
.loop: lodsb
|
||||
test al, al
|
||||
jz .end
|
||||
int 0x10
|
||||
jmp .loop
|
||||
.end: ret
|
||||
|
||||
string:
|
||||
db "Hello world!", 0x0A, 0x0D, 0
|
||||
string: db "Hello world!", 0x0A, 0x0D, 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue