Updated the parser to handle processing a simple load byte instruction. Added the LODB opcode to the opcode enum listing and updated the Scanner to look for 'byte' and mark it as a directive.
This commit is contained in:
@@ -291,6 +291,14 @@ Token* ParseIdentifier(void) {
|
||||
|
||||
return token;
|
||||
}
|
||||
if (strcmp(lexeme, "byte") == 0) {
|
||||
Token* token = CreateToken(Line, DirectiveClass);
|
||||
|
||||
token->Lemexe = lexeme;
|
||||
token->Value.Directive = Byte;
|
||||
|
||||
return token;
|
||||
}
|
||||
|
||||
Token* token = CreateToken(Line, IdentifierClass);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user