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

Commit

Permalink
Clean up stack in case of type error
Browse files Browse the repository at this point in the history
Under the label type_error, I forgot the clean up the stack. This
can lead to overflow problems particularly if type is executed with
errors several times in a row.

Signed-off-by: nkeck720 <noahkeck72@gmail.com>
  • Loading branch information
devfonks committed Nov 18, 2016
1 parent 8e72c18 commit 5e72ea0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ done_type:
jmp command_prompt
type_error:
; Could not find the file or there was a disk error
pop ax
pop ax
pop ax
mov ah, 01h
mov dx, error_load_type
int 21h
Expand Down

0 comments on commit 5e72ea0

Please sign in to comment.