implemented hexstrings, implemented MOVE, PUTCOLOR, GETCHAR, GETCOLOR, modified PUTCHAR, several fixes.

This commit is contained in:
2017-02-09 19:03:20 +01:00
parent be539b1591
commit 3f1f9451ca
10 changed files with 219 additions and 298 deletions

View File

@@ -7,6 +7,7 @@ enum t_tokentype {
TOKEN_ERROR,
TOKEN_NUMBER,
TOKEN_STRING,
TOKEN_HEXSTRING,
TOKEN_IDENTIFIER,
TOKEN_LABEL,
@@ -59,9 +60,13 @@ enum t_tokentype {
TOKEN_SETSPRITE,
TOKEN_PUTSPRITE,
TOKEN_LOCATE,
TOKEN_MOVE,
TOKEN_PRINT,
TOKEN_PUTCHAR,
TOKEN_SETCHAR,
TOKEN_PUTCHAR,
TOKEN_GETCHAR,
TOKEN_PUTCOLOR,
TOKEN_GETCOLOR,
TOKEN_KEYPRESSED,
TOKEN_ANYKEY,
TOKEN_UPDATESCR,
@@ -80,6 +85,7 @@ void tkn_init(const char* buffer);
void tkn_next();
t_tokentype tkn_get_token();
char* tkn_get_string();
unsigned char* tkn_get_array();
int tkn_get_value();
int tkn_get_line();
int tkn_get_row();