libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
encode.h
Go to the documentation of this file.
1
7#ifndef C8_PARSE_H
8#define C8_PARSE_H
9
10#include <stdint.h>
11
15#define C8_ARG_VERBOSE 1
16
20#define C8_ENCODE_MAX_LINE_LENGTH 100
21
25#define C8_ENCODE_MAX_WORDS 100
26
30#define C8_ENCODE_MAX_LINES 500
31
35extern char** c8_lines;
36
40extern char** c8_linesUnformatted;
41
45extern int c8_lineCount;
46
47int c8_encode(const char*, uint8_t*, int);
48char* c8_remove_comment(char*);
49
50#endif
char ** c8_lines
Source code (will be manipulated when encoding)
Definition: encode.c:36
int c8_encode(const char *, uint8_t *, int)
Parse the given string.
Definition: encode.c:53
char * c8_remove_comment(char *)
Remove comment from string if exists.
Definition: encode.c:136
char ** c8_linesUnformatted
Source code (will not be manipulated when encoding)
Definition: encode.c:37
int c8_lineCount
Source code line count.
Definition: encode.c:38