#include <stdint.h>
Go to the source code of this file.
|
| int | c8_encode (const char *, uint8_t *, int) |
| | Parse the given string.
|
| |
| char * | c8_remove_comment (char *) |
| | Remove comment from string if exists.
|
| |
◆ C8_ARG_VERBOSE
◆ C8_ENCODE_MAX_LINE_LENGTH
| #define C8_ENCODE_MAX_LINE_LENGTH 100 |
◆ C8_ENCODE_MAX_LINES
| #define C8_ENCODE_MAX_LINES 500 |
◆ C8_ENCODE_MAX_WORDS
| #define C8_ENCODE_MAX_WORDS 100 |
Maximum number of words per line.
◆ c8_encode()
| int c8_encode |
( |
const char * |
s, |
|
|
uint8_t * |
out, |
|
|
int |
args |
|
) |
| |
Parse the given string.
This is the main assembler function.
This function generates bytecode from the given assembly code.
- Parameters
-
| s | string containing assembly code |
| out | pointer to write bytecode to |
| args | command line arguments |
- Returns
- length of resulting bytecode.
◆ c8_remove_comment()
| char * c8_remove_comment |
( |
char * |
s | ) |
|
Remove comment from string if exists.
- Parameters
-
| s | string to remove comment from |
- Returns
- string without comment
◆ c8_lineCount
◆ c8_lines
Source code (will be manipulated when encoding)
◆ c8_linesUnformatted
| char** c8_linesUnformatted |
|
extern |
Source code (will not be manipulated when encoding)