Support [base + index<<scale] and [base + index>>scale]; Support syntax for [base]:u8 (not implemented yet)

This commit is contained in:
gingerBill
2026-08-12 09:03:31 +01:00
parent 21ad041232
commit c80fedc070
5 changed files with 103 additions and 27 deletions

View File

@@ -196,6 +196,9 @@ Token ast_end_token(Ast *node) {
}
return ast_end_token(node->AsmInstruction.name);
case Ast_AsmMemoryOperand:
if (node->AsmMemoryOperand.type) {
return ast_end_token(node->AsmMemoryOperand.type);
}
return node->AsmMemoryOperand.close;
case Ast_BadExpr: return node->BadExpr.end;