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) {
|
||||
|
||||
switch (inst->type) {
|
||||
|
||||
// Halt the program
|
||||
case a64inst_HALT:
|
||||
// Halt the program
|
||||
break;
|
||||
|
||||
// Execute a data processing immediate instruction
|
||||
case a64inst_DPIMMEDIATE:
|
||||
// Execute a data processing immediate instruction
|
||||
break;
|
||||
|
||||
// Execute a branch instruction
|
||||
case a64inst_BRANCH:
|
||||
// Execute a branch instruction
|
||||
break;
|
||||
|
||||
// Execute a data processing register instruction
|
||||
case a64inst_DPREGISTER:
|
||||
// Execute a data processing register instruction
|
||||
break;
|
||||
|
||||
// Unknown instruction
|
||||
default:
|
||||
// Unknown instruction
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user