sh: Check to make sure we have a stream struct before continuing

Fixes issue #17.
This commit is contained in:
Ry 2023-07-13 21:15:04 -07:00
parent ca802706f4
commit 0059493bb2

View File

@ -7,6 +7,8 @@ const SET_COLOR: 0xF2
const REDRAW_LINE: 0xFE const REDRAW_LINE: 0xFE
pop [shell_stream_struct_ptr] pop [shell_stream_struct_ptr]
cmp [shell_stream_struct_ptr], 0
ifz call end_current_task
shell_task_return: shell_task_return:
cmp.8 [shell_redirect_next], 0 cmp.8 [shell_redirect_next], 0