From 35a18609864470b3dc49f3a9a6cb6ec93e57300d Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 25 Feb 2021 12:43:11 -0500 Subject: - Implemented the multiply expression into the assembler. - Implemented support for the SIB addressing mode into the assembler. SIB is short for "Scale Index, and Base", and works much like x86's version of SIB (scale*index+base), although my version supports any scale value between 1, and 256. - Redid the line shifting routine in SuBEditor. It now uses memcpy, and memset to do that, and also supports shifting the line left, or right by any number of characters. --- lexer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lexer.h') diff --git a/lexer.h b/lexer.h index 8775187..5096f74 100644 --- a/lexer.h +++ b/lexer.h @@ -18,6 +18,7 @@ static uint8_t isdelm2(char c, uint8_t dbg) { case ',' : case '.' : case '+' : + case '*' : case '<' : case '|' : case '>' : @@ -40,6 +41,7 @@ static uint8_t get_ptok(char c, uint8_t dbg) { case '=' : return PTOK_EQU ; case '+' : return PTOK_PLUS ; case '-' : return PTOK_MINUS ; + case '*' : return PTOK_ASTRSK ; case '>' : return PTOK_GT ; case '<' : return PTOK_LT ; case '|' : return PTOK_PIPE ; -- cgit v1.2.3-13-gbd6f