Sfoglia il codice sorgente

Update 'Functions/Goto.cs'

master
Archivist 3 anni fa
parent
commit
cb3a967aa5
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      Functions/Goto.cs

+ 2
- 2
Functions/Goto.cs Vedi File

@ -10,7 +10,7 @@ namespace SuperBASIC.Functions
{
// Substract its own arity +1
arguments[0].runtime.pc = (int)arguments[0] - 2;
return m">0f;
return n">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 m">0f;
return n">arguments[0].runtime.register;
}
}
}

Caricamento…
Annulla
Salva