libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
encode.h
Go to the documentation of this file.
1
7#ifndef LIBC8_PARSE_H
8#define LIBC8_PARSE_H
9
10#include <stdint.h>
11
12#define ARG_VERBOSE 1
13
14#define C8_ENCODE_MAX_LINE_LENGTH 100
15#define C8_ENCODE_MAX_WORDS 100
16#define C8_ENCODE_MAX_LINES 500
17
18extern char **c8_lines;
19extern char **c8_lines_unformatted;
20extern int c8_line_count;
21
22int c8_encode(const char*, uint8_t*, int);
23char* remove_comment(char*);
24
25#endif
int c8_line_count
Definition: encode.c:33
char ** c8_lines
Definition: encode.c:31
char ** c8_lines_unformatted
Definition: encode.c:32
int c8_encode(const char *, uint8_t *, int)
Parse the given string.
Definition: encode.c:48
char * remove_comment(char *)
Remove comment from string if exists.
Definition: encode.c:133