Improved style of emulate function w/ S
This commit is contained in:
parent
65ba8339c6
commit
7224903ea6
@ -3,20 +3,25 @@
|
|||||||
void execute(Machine *state, a64inst_instruction *inst) {
|
void execute(Machine *state, a64inst_instruction *inst) {
|
||||||
|
|
||||||
switch (inst->type) {
|
switch (inst->type) {
|
||||||
case a64inst_HALT:
|
|
||||||
// Halt the program
|
// Halt the program
|
||||||
|
case a64inst_HALT:
|
||||||
break;
|
break;
|
||||||
case a64inst_DPIMMEDIATE:
|
|
||||||
// Execute a data processing immediate instruction
|
// Execute a data processing immediate instruction
|
||||||
|
case a64inst_DPIMMEDIATE:
|
||||||
break;
|
break;
|
||||||
case a64inst_BRANCH:
|
|
||||||
// Execute a branch instruction
|
// Execute a branch instruction
|
||||||
|
case a64inst_BRANCH:
|
||||||
break;
|
break;
|
||||||
case a64inst_DPREGISTER:
|
|
||||||
// Execute a data processing register instruction
|
// Execute a data processing register instruction
|
||||||
|
case a64inst_DPREGISTER:
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
// Unknown instruction
|
// Unknown instruction
|
||||||
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user