History

allow (base,index) as alias to (base,index,1)

bellard committed 20 years ago

Commit 6ca02991 parent 5487bc21 file · +4 −2Browse files

Unified · Split

i386-asm.c+4−2
@@ -320,8 +320,10 @@ static void parse_operand(TCCState *s1, Operand *op) · 319 unmodified lines
320320 if (tok != ',') {
321321 op->reg2 = asm_parse_reg();
322322 }
323− skip(',');
324− op->shift = get_reg_shift(s1);
323+ if (tok == ',') {
324+ next();
325+ op->shift = get_reg_shift(s1);
326+ }
325327 }
326328 skip(')');
327329 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t