Improved style of emulate function w/ S

This commit is contained in:
Themis Demetriades 2024-06-02 21:55:40 +01:00
parent 65ba8339c6
commit 7224903ea6

View File

@ -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;
}