Skip to content

Commit

Permalink
sh: Check to make sure we have a stream struct before continuing
Browse files Browse the repository at this point in the history
Fixes issue #17.
  • Loading branch information
ry755 committed Jul 14, 2023
1 parent ca80270 commit 0059493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/sh/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const SET_COLOR: 0xF2
const REDRAW_LINE: 0xFE

pop [shell_stream_struct_ptr]
cmp [shell_stream_struct_ptr], 0
ifz call end_current_task

shell_task_return:
cmp.8 [shell_redirect_next], 0
Expand Down

0 comments on commit 0059493

Please sign in to comment.