From 0059493bb209d6aa8a769669dcf9582eea052d5c Mon Sep 17 00:00:00 2001 From: Ry Date: Thu, 13 Jul 2023 21:15:04 -0700 Subject: [PATCH] sh: Check to make sure we have a stream struct before continuing Fixes issue #17. --- applications/sh/main.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/sh/main.asm b/applications/sh/main.asm index 4c2aa58..5db4c64 100644 --- a/applications/sh/main.asm +++ b/applications/sh/main.asm @@ -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