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

Commit

Permalink
Fixed some kernel issues
Browse files Browse the repository at this point in the history
Fixed some issues regarding the kernel.

Signed-off-by: nkeck720 <noahkeck72@gmail.com>
  • Loading branch information
devfonks committed Oct 15, 2016
1 parent c914574 commit 45db118
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
bad_command db "That command doesn't exist.", 0Dh, 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
start:
pop dx ; Get our boot drive
push cs
Expand Down Expand Up @@ -341,9 +342,11 @@ command_prompt:
mov dx, prompt
int 21h
mov ah, 06h
push ds ; Save original DS again
mov ax, 0FFFFh ; HMA
mov ds, ax ; The command line space as shown in the memory model
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
pop bx
mov dx, 0010h
int 21h
;; Now, we switch back to the original DS and parse the command.
Expand Down

0 comments on commit 45db118

Please sign in to comment.