|
|
@ -53,7 +53,7 @@ namespace Interpreter
|
|
|
|
virtual void execute (Runtime& runtime, unsigned int arg0)
|
|
|
|
virtual void execute (Runtime& runtime, unsigned int arg0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (arg0==0)
|
|
|
|
if (arg0==0)
|
|
|
|
throw std::logic_error ("inifite loop");
|
|
|
|
throw std::logic_error ("infinite loop");
|
|
|
|
|
|
|
|
|
|
|
|
runtime.setPC (runtime.getPC()+arg0-1);
|
|
|
|
runtime.setPC (runtime.getPC()+arg0-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -66,7 +66,7 @@ namespace Interpreter
|
|
|
|
virtual void execute (Runtime& runtime, unsigned int arg0)
|
|
|
|
virtual void execute (Runtime& runtime, unsigned int arg0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (arg0==0)
|
|
|
|
if (arg0==0)
|
|
|
|
throw std::logic_error ("inifite loop");
|
|
|
|
throw std::logic_error ("infinite loop");
|
|
|
|
|
|
|
|
|
|
|
|
runtime.setPC (runtime.getPC()-arg0-1);
|
|
|
|
runtime.setPC (runtime.getPC()-arg0-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|