Skip to content

Commit

Permalink
Fixed bug with 'kill' command that caused overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chessmaster42 committed May 7, 2012
1 parent c2745bb commit 5e2776b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/AtlasShell.dasm16
Expand Up @@ -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
Expand Down

0 comments on commit 5e2776b

Please sign in to comment.