mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-15 23:42:20 +00:00
fixed a spelling mistake
This commit is contained in:
parent
2cc20c67cb
commit
b255472cc6
@ -11,66 +11,66 @@ namespace Interpreter
|
|||||||
class OpReturn : public Opcode0
|
class OpReturn : public Opcode0
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual void execute (Runtime& runtime)
|
virtual void execute (Runtime& runtime)
|
||||||
{
|
{
|
||||||
runtime.setPC (-1);
|
runtime.setPC (-1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class OpSkipZero : public Opcode0
|
class OpSkipZero : public Opcode0
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual void execute (Runtime& runtime)
|
virtual void execute (Runtime& runtime)
|
||||||
{
|
{
|
||||||
Type_Integer data = runtime[0].mInteger;
|
Type_Integer data = runtime[0].mInteger;
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
if (data==0)
|
if (data==0)
|
||||||
runtime.setPC (runtime.getPC()+1);
|
runtime.setPC (runtime.getPC()+1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class OpSkipNonZero : public Opcode0
|
class OpSkipNonZero : public Opcode0
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual void execute (Runtime& runtime)
|
virtual void execute (Runtime& runtime)
|
||||||
{
|
{
|
||||||
Type_Integer data = runtime[0].mInteger;
|
Type_Integer data = runtime[0].mInteger;
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
if (data!=0)
|
if (data!=0)
|
||||||
runtime.setPC (runtime.getPC()+1);
|
runtime.setPC (runtime.getPC()+1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class OpJumpForward : public Opcode1
|
class OpJumpForward : public Opcode1
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class OpJumpBackward : public Opcode1
|
class OpJumpBackward : public Opcode1
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user