From 5e2776bd3fbc8cdab328005adf42702ba4f25c77 Mon Sep 17 00:00:00 2001 From: chessmaster42 Date: Sun, 6 May 2012 21:28:39 -0500 Subject: [PATCH] Fixed bug with 'kill' command that caused overflow --- apps/AtlasShell.dasm16 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/AtlasShell.dasm16 b/apps/AtlasShell.dasm16 index cb3a5eb..4af22ef 100644 --- a/apps/AtlasShell.dasm16 +++ b/apps/AtlasShell.dasm16 @@ -314,6 +314,10 @@ ; Convert the param to an integer SET A, command_parameter_buffer JSR [0x101D] ; A is source, C is result + + ; Handle overflow + IFG C, 32 + SET C, 32 ; Selfkill? SET PUSH, A