-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
leanu
authored and
leanu
committed
Jan 21, 2014
0 parents
commit 9fce8fc
Showing
5 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.bin | ||
*.img | ||
doit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Simple OS, which should consist of bootloader, kernel, shell, and several functionalities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[org 0x7c00] | ||
|
||
mov bx, msg | ||
|
||
mov al, [bx] | ||
mov ah, 0x0e | ||
l1: | ||
mov al, [bx] | ||
cmp al, 0 | ||
je end_printing | ||
int 0x10 | ||
inc bx | ||
jmp l1 | ||
end_printing: | ||
mov al, '!' | ||
int 0x10 | ||
msg DB 'This is the bootloader, it will load kernel', 0 | ||
|
||
jmp $ ; infinite loop | ||
|
||
times 510-($-$$) db 0 | ||
|
||
dw 0xaa55 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pentru a face floppy imagine | ||
dd if=/dev/zero of=disk.img bs=1024 count=1440 | ||
pentru a inscrie de la inceput(primu sector) | ||
dd if=boot.bin of=disk.img conv-notrunc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nasm -f bin -o boot.bin boot.asm | ||
cat boot.bin >floppy.img | ||
|