added new instructions and new test
This commit is contained in:
parent
d4754a048d
commit
6b3f4989ae
6 changed files with 142 additions and 38 deletions
|
|
@ -63,8 +63,18 @@ inline int resolveJumpTarget(Machine& m, int ea, AddressingMode mode)
|
|||
}
|
||||
}
|
||||
|
||||
void fix_handler(Machine &m)
|
||||
{
|
||||
m.setA(static_cast<int>(m.getF()));
|
||||
}
|
||||
|
||||
void addr_handler(Machine& m, int r1, int r2) {
|
||||
void float_handler(Machine &m)
|
||||
{
|
||||
m.setF(static_cast<double>(m.getA()));
|
||||
}
|
||||
|
||||
void addr_handler(Machine &m, int r1, int r2)
|
||||
{
|
||||
m.setReg(r2, m.getReg(r1) + m.getReg(r2));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue