-
-
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.
chore: remove useless file and trying refactor bootloader
- Loading branch information
Showing
13 changed files
with
320 additions
and
328 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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
#+TITLE: StupidOS Bootloader | ||
#+begin_src | ||
0x100000 +-----------------------+ | ||
| | | ||
| Reserved | | ||
| | | ||
0x080000 +-----------------------+ | ||
| | | ||
| Kernel preload | | ||
| | | ||
0x00F000 +-----------------------+ | ||
| | | ||
| buffer | | ||
| | | ||
0x008000 +-----------------------+ | ||
| | | ||
| Boot0 | | ||
| | | ||
0x007000 +-----------------------+ | ||
| | | ||
| Real mode stack | | ||
| | | ||
0x006000 +-----------------------+ | ||
| | | ||
| Boot1 | | ||
| | | ||
0x001000 +-----------------------+ | ||
| | | ||
| Reserved (BIOS & IVT) | | ||
| | | ||
0x000000 +-----------------------+ | ||
#+end_src | ||
#+TITLE: StupidOS Bootloader | ||
|
||
#+begin_src | ||
0x100000 +-----------------------+ | ||
| | | ||
| Reserved | | ||
| | | ||
0x080000 +-----------------------+ | ||
| | | ||
| Kernel preload | | ||
| | | ||
0x00F000 +-----------------------+ | ||
| | | ||
| buffer | | ||
| | | ||
0x008000 +-----------------------+ | ||
| | | ||
| bootsector | | ||
| | | ||
0x007000 +-----------------------+ | ||
| | | ||
| Real mode stack | | ||
| | | ||
0x006000 +-----------------------+ | ||
| | | ||
| stpdldr.sys | | ||
| | | ||
0x001000 +-----------------------+ | ||
| | | ||
| Reserved (BIOS & IVT) | | ||
| | | ||
0x000000 +-----------------------+ | ||
#+end_src |
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 |
---|---|---|
@@ -1,9 +1,18 @@ | ||
bios_print: | ||
lodsb | ||
or al, al | ||
jz @f | ||
mov ah, 0x0E | ||
int 0x10 | ||
jmp bios_print | ||
@@: | ||
ret | ||
;; File: bios.inc | ||
|
||
|
||
;; Function: bios_print | ||
;; | ||
;; Parameters: | ||
;; | ||
;; si - null-terminated string to print | ||
;; | ||
bios_print: | ||
lodsb | ||
or al, al | ||
jz @f | ||
mov ah, 0x0E | ||
int 0x10 | ||
jmp bios_print | ||
@@: | ||
ret |
Oops, something went wrong.