Hooked up the program counter in the parser to set the memory offset of symbols, well labels to be more acurrate.

This commit is contained in:
2023-06-18 14:51:37 -05:00
parent c6e6e2c5dc
commit 6741dde7ce
4 changed files with 72 additions and 25 deletions
-16
View File
@@ -283,14 +283,6 @@ Token* ParseIdentifier(void) {
return token;
}
// if (strcmp(lexeme, "load") == 0) {
// Token* token = CreateToken(Line, DirectiveClass);
// token->Lemexe = lexeme;
// token->Value.Directive = Load;
// return token;
// }
if (strcmp(lexeme, "byte") == 0) {
Token* token = CreateToken(Line, DirectiveClass);
@@ -299,14 +291,6 @@ Token* ParseIdentifier(void) {
return token;
}
// if (strcmp(lexeme, "store") == 0) {
// Token* token = CreateToken(Line, DirectiveClass);
// token->Lemexe = lexeme;
// token->Value.Directive = Store;
// return token;
// }
Token* token = CreateToken(Line, IdentifierClass);