asm: add exceptions to the whole descriptor-table ops (lgdt/lidt/sgdt/sidt)

This commit is contained in:
gingerBill committed 2026-09-08 10:05:54 +01:00
1 parent a6004f297f
commit e5bce4b2ad
3 files changed
+31 -4

No files matched your search

+4 -3
View File
@@ -2618,9 +2618,10 @@ gb_internal Ast *parse_asm_operand(AstFile *f, bool allow_memory_operand) {
Token op = {};
op.kind = Token_Add;
while (f->curr_token.kind != Token_EOF &&
f->curr_token.kind != Token_Semicolon &&
f->curr_token.kind != Token_CloseBracket) {
while (base != nullptr ||
(f->curr_token.kind != Token_EOF &&
f->curr_token.kind != Token_Semicolon &&
f->curr_token.kind != Token_CloseBracket)) {
Ast *operand = nullptr;
Ast *scale = nullptr;
Token scale_op = {};