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
16
void
c8_decode
(FILE *, FILE *,
int
);
17
char
*
c8_decode_instruction
(uint16_t, uint8_t *);
18
uint16_t
c8_jump
(uint16_t);
19
20
#endif
c8_decode
void c8_decode(FILE *, FILE *, int)
Convert bytecode from input to assembly and writes it to output.
Definition:
decode.c:34
c8_decode_instruction
char * c8_decode_instruction(uint16_t, uint8_t *)
Decode in and return its assembly value.
Definition:
decode.c:86
c8_jump
uint16_t c8_jump(uint16_t)
libc8
c8
decode.h
Generated by
1.9.4