Add execute.c, w/ T

This commit is contained in:
sBubshait 2024-05-30 15:24:28 +01:00
parent 497cd7ce3b
commit 94815c838c
2 changed files with 26 additions and 0 deletions

23
src/execute.c Normal file
View File

@ -0,0 +1,23 @@
#include "execute.h"
void execute(a64inst_instruction inst) {
switch (inst.type) {
case a64inst_Halt:
// Halt the program
break;
case a64inst_DPImmediate:
// Execute a data processing immediate instruction
break;
case a64inst_Branch:
// Execute a branch instruction
break;
case a64inst_DPRegister:
// Execute a data processing register instruction
break;
default:
// Unknown instruction
break;
}
}

3
src/execute.h Normal file
View File

@ -0,0 +1,3 @@
#include "a64instruction.h"
void execute(a64inst_instruction inst);