Insert a user help function (-h)

This commit is contained in:
lux
2017-08-17 20:40:25 +02:00
parent 99a8dc35a7
commit a907e23f9c
3 changed files with 52 additions and 1 deletions

View File

@ -5,12 +5,14 @@
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#define CPU_TYPE "Koopman_TOY_CPU"
#define RAM_SIZE 4096
#define CPU_WORD_SIZE 16
void print_instructionSet(void);
int initialise_ram(uint16_t *ram, int argc, char **argv );
uint8_t get_opcode(uint16_t instruction);
uint16_t find_data(uint16_t instruction);