From 98cef5e9a772602d42acfcf233838c760424db9a Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Thu, 13 Feb 2025 18:00:17 +1100 Subject: initial commit --- comp1521/smips/input.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 comp1521/smips/input.h (limited to 'comp1521/smips/input.h') diff --git a/comp1521/smips/input.h b/comp1521/smips/input.h new file mode 100644 index 0000000..44ac0c9 --- /dev/null +++ b/comp1521/smips/input.h @@ -0,0 +1,12 @@ +#ifndef INPUT_H_ +#define INPUT_H_ + +#include +#include +#include + +uint32_t hex_to_decimal(const uint32_t decimal); +uint32_t get_next_instruction(FILE *const iptr); +void goto_previous_instruction(FILE *const iptr); + +#endif -- cgit v1.2.3