Improving debugger.

This commit is contained in:
2017-02-01 16:47:23 +01:00
parent 42d738b5fa
commit ad4b15514d
8 changed files with 71 additions and 57 deletions

View File

@@ -66,7 +66,7 @@ t_token_op tkn_tokens[] = {
{ "wait", TOKEN_WAIT },
};
static char hex_digit(const char digit) { return digit - (digit < 57 ? 48 : 55); }
static char hex_digit(const char digit) { return digit - (digit <= 57 ? 48 : 55); }
#define CCHR *ptr
#define NEXT if(*ptr==10){line++;row=0;}else{row++;};ptr++