libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
decode.h
Go to the documentation of this file.
1
7#ifndef C8_DECODE_H
8#define C8_DECODE_H
9
10#include <stdint.h>
11#include <stdio.h>
12
16#define C8_DECODE_DEFINE_LABELS 0x1
17
21#define C8_DECODE_PRINT_ADDRESSES 0x2
22
23void c8_decode(FILE*, FILE*, int);
24char* c8_decode_instruction(uint16_t, uint8_t*);
25uint16_t c8_jump(uint16_t);
26
27#endif
void c8_decode(FILE *, FILE *, int)
Convert bytecode from input to assembly and writes it to output.
Definition: decode.c:37
char * c8_decode_instruction(uint16_t, uint8_t *)
Decode in and return its assembly value.
Definition: decode.c:89
uint16_t c8_jump(uint16_t)