From 7224903ea6411684999e0c7d9acf4f04b219ae8b Mon Sep 17 00:00:00 2001 From: Themis Demetriades Date: Sun, 2 Jun 2024 21:55:40 +0100 Subject: [PATCH] Improved style of emulate function w/ S --- src/execute.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/execute.c b/src/execute.c index d0c2c5e..6622812 100644 --- a/src/execute.c +++ b/src/execute.c @@ -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; }