History

i386-asm: correct lcall/ljmp encoding

The 0xff/3 form of lcall needs a mod/rm byte, so reflect this.

Michael Matz committed 10 years ago

Commit d1515a01 parent 6afe6681 file · +2 −2Browse files

Unified · Split

i386-asm.h+2−2
@@ -213,9 +213,9 @@ ALT(DEF_ASM_OP1(jmp, 0xff, 0, OPC_JMP | OPC_WL, OPT_REGW)) · 212 unmodified lines
213213 #endif
214214
215215 ALT(DEF_ASM_OP2(lcall, 0x9a, 0, 0, OPT_IM16, OPT_IM32))
216−ALT(DEF_ASM_OP1(lcall, 0xff1f, 3, 0, OPT_EA))
216+ALT(DEF_ASM_OP1(lcall, 0xff, 3, OPC_MODRM, OPT_EA))
217217 ALT(DEF_ASM_OP2(ljmp, 0xea, 0, 0, OPT_IM16, OPT_IM32))
218−ALT(DEF_ASM_OP1(ljmp, 0xff, 5, 0, OPT_EA))
218+ALT(DEF_ASM_OP1(ljmp, 0xff, 5, OPC_MODRM, OPT_EA))
219219
220220 ALT(DEF_ASM_OP1(int, 0xcd, 0, 0, OPT_IM8))
221221 ALT(DEF_ASM_OP1(seto, 0x0f90, 0, OPC_MODRM | OPC_TEST, OPT_REG8 | OPT_EA))

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