Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
First bootable commit
Browse files Browse the repository at this point in the history
This is the first commit that is bootable. There is
some work to be done on the API, then we will have a
base release!

Signed-off-by: nkeck720 <noahkeck72@gmail.com>
  • Loading branch information
devfonks committed Oct 15, 2016
1 parent 45db118 commit 406c566
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions int21.asm
Expand Up @@ -276,6 +276,8 @@ get_char_loop:
; Otherwise copy the char and begin again
mov [ds:si], al
inc si
mov ah, 0Eh
int 10h
jmp get_char_loop
get_string_done:
; Place our NULL and exit
Expand Down
12 changes: 6 additions & 6 deletions kernel.asm
Expand Up @@ -26,15 +26,15 @@
boot_drv db 00h ; For saving tho boot drive
old_ss dw 0000h ; For saving our old SS locations.
old_sp dw 0000h ; Same for old SP.
version db "NOS version 2.0 -- built from Git repository", 0Dh, 00h ; Version string
bootmsg db "Booting up...", 0Dh, 00h ; Boot message
version db "NOS Beta 1 -- built from Git repository", 0Dh, 00h ; Version string
bootmsg db "Booting up...", 0Dh, 0Ah, 00h ; Boot message
drv_fname db "DRVS", 00h ; Driver list file name
blank_line db 0Dh, 00h ; A blank line on the screen
blank_line db 0Dh, 0Ah, 00h ; A blank line on the screen
prompt db "NOS> ", 00h ; Command prompt
bad_command db "That command doesn't exist.", 0Dh, 00h ; Bad command message
bad_command db "That command doesn't exist.", 0Dh, 0Ah, 00h ; Bad command message
ret_opcode equ 0CBh ; A RET is a single-byte instruction, so we store it here for later
old_dx dw 0000h ; For loading segmented stuff
missing_drvs db "No DRVS file present, skipping", 0Dh, 00h
missing_drvs db "No DRVS file present, skipping", 0Dh, 0Ah, 00h
start:
pop dx ; Get our boot drive
push cs
Expand Down Expand Up @@ -342,7 +342,7 @@ command_prompt:
mov dx, prompt
int 21h
mov ah, 06h
push ds ; Save original DS again
push ds ; Save original DS again
push bx
mov bx, 0FFFFh ; HMA
mov ds, bx ; The command line space as shown in the memory model
Expand Down

0 comments on commit 406c566

Please sign in to comment.