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

Commit

Permalink
External command patch
Browse files Browse the repository at this point in the history
It seems that INT13 doesn't always keep ES and BX intact. I have
accomodated for that in this commit.

Signed-off-by: Nkeck720 <noahkeck72@gmail.com>
  • Loading branch information
devfonks committed Jan 13, 2017
1 parent d499f0f commit 0a978a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ external_command:
;; or the file was not found.
jc bad_prog_file
;; Now check for a flat or segmented program
mov bx, 4000h
mov es, bx
pop ds ; We get this back now
mov ah, byte ptr es:bx
cmp ah, "F"
Expand Down

0 comments on commit 0a978a0

Please sign in to comment.