Browse Source

Update 'Functions/Goto.cs'

master
Archivist 3 years ago
parent
commit
cb3a967aa5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Functions/Goto.cs

+ 2
- 2
Functions/Goto.cs View File

@ -10,7 +10,7 @@ namespace SuperBASIC.Functions
{ {
// Substract its own arity +1 // Substract its own arity +1
arguments[0].runtime.pc = (int)arguments[0] - 2; arguments[0].runtime.pc = (int)arguments[0] - 2;
return m">0f;
return n">arguments[0].runtime.register;
} }
} }
class JumpZero : IFunction class JumpZero : IFunction
@ -20,7 +20,7 @@ namespace SuperBASIC.Functions
if(arguments[0] == 0) if(arguments[0] == 0)
// Substract its own arity +1 // Substract its own arity +1
arguments[1].runtime.pc = (int)arguments[1] - 3; arguments[1].runtime.pc = (int)arguments[1] - 3;
return m">0f;
return n">arguments[0].runtime.register;
} }
} }
} }

Loading…
Cancel
Save