libc8
CHIP-8 utility library
decode.h
Go to the documentation of this file.
1
7#ifndef LIBC8_DECODE_H
8#define LIBC8_DECODE_H
9
10#include <stdint.h>
11#include <stdio.h>
12
13#define C8_DECODE_DEFINE_LABELS 0x1
14#define C8_DECODE_PRINT_ADDRESSES 0x2
15
16void c8_decode(FILE *, FILE *, int);
17char *c8_decode_instruction(uint16_t, uint8_t *);
18uint16_t c8_jump(uint16_t);
19
20#endif
void c8_decode(FILE *, FILE *, int)
Convert bytecode from input to assembly and writes it to output.
Definition: decode.c:34
char * c8_decode_instruction(uint16_t, uint8_t *)
Decode in and return its assembly value.
Definition: decode.c:86
uint16_t c8_jump(uint16_t)