From cb3a967aa5e49ababd68e35c9b722734b9abd3f6 Mon Sep 17 00:00:00 2001 From: Archivist Date: Fri, 29 Oct 2021 11:55:45 +0000 Subject: [PATCH] Update 'Functions/Goto.cs' --- Functions/Goto.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Functions/Goto.cs b/Functions/Goto.cs index 31249a6..a4eb11a 100644 --- a/Functions/Goto.cs +++ b/Functions/Goto.cs @@ -10,7 +10,7 @@ namespace SuperBASIC.Functions { // Substract its own arity +1 arguments[0].runtime.pc = (int)arguments[0] - 2; - return 0f; + return arguments[0].runtime.register; } } class JumpZero : IFunction @@ -20,7 +20,7 @@ namespace SuperBASIC.Functions if(arguments[0] == 0) // Substract its own arity +1 arguments[1].runtime.pc = (int)arguments[1] - 3; - return 0f; + return arguments[0].runtime.register; } } }