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
23
void
c8_decode
(FILE*, FILE*,
int
);
24
char
*
c8_decode_instruction
(uint16_t, uint8_t*);
25
uint16_t
c8_jump
(uint16_t);
26
27
#endif
c8_decode
void c8_decode(FILE *, FILE *, int)
Convert bytecode from input to assembly and writes it to output.
Definition:
decode.c:37
c8_decode_instruction
char * c8_decode_instruction(uint16_t, uint8_t *)
Decode in and return its assembly value.
Definition:
decode.c:89
c8_jump
uint16_t c8_jump(uint16_t)
src
c8
decode.h
Generated by
1.9.6