summaryrefslogtreecommitdiff
path: root/lexer.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-02-25 12:43:11 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2021-02-25 12:43:11 -0500
commit35a18609864470b3dc49f3a9a6cb6ec93e57300d (patch)
treec52364211b25723b2cf4595ed6c4bc2d45195062 /lexer.h
parent8d7f27d9a0b61d3694a62f3e54be885d8073f02b (diff)
- 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.
Diffstat (limited to 'lexer.h')
-rw-r--r--lexer.h2
1 files changed, 2 insertions, 0 deletions
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 ;