Add new function find_data() to separate the instruction from op_code.

This commit is contained in:
lux
2017-08-07 20:59:17 +02:00
parent 683349d210
commit 1bdbf7a7e7
4 changed files with 32 additions and 3 deletions

View File

@ -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