Add execute.c, w/ T
This commit is contained in:
parent
497cd7ce3b
commit
94815c838c
23
src/execute.c
Normal file
23
src/execute.c
Normal 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
3
src/execute.h
Normal file
@ -0,0 +1,3 @@
|
||||
#include "a64instruction.h"
|
||||
|
||||
void execute(a64inst_instruction inst);
|
||||
Loading…
Reference in New Issue
Block a user