Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
leanu authored and leanu committed Jan 21, 2014
0 parents commit 9fce8fc
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.bin
*.img
doit.sh
1 change: 1 addition & 0 deletions README.md
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
25 changes: 25 additions & 0 deletions boot.asm
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

4 changes: 4 additions & 0 deletions comenzi.txt
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
3 changes: 3 additions & 0 deletions doimg.sh
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

0 comments on commit 9fce8fc

Please sign in to comment.