diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-13 18:00:17 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-13 18:00:17 +1100 |
| commit | 98cef5e9a772602d42acfcf233838c760424db9a (patch) | |
| tree | 5277fa1d7cc0a69a0f166fcbf10fd320f345f049 /comp1521/smips/input.h | |
initial commit
Diffstat (limited to 'comp1521/smips/input.h')
| -rw-r--r-- | comp1521/smips/input.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 <ctype.h> +#include <stdint.h> +#include <stdio.h> + +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 |
