Add new function find_data() to separate the instruction from op_code.
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define RAM_SIZE 4096
|
||||
@ -11,5 +12,6 @@
|
||||
|
||||
int initialise_ram(uint16_t *ram, int argc, char **argv );
|
||||
uint8_t get_opcode(uint16_t instruction);
|
||||
int find_data(uint16_t instruction);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user