Skip to content

Commit

Permalink
Add "mov $imm, %eax" to the known instructions. This is needed to
Browse files Browse the repository at this point in the history
work on 'write' on 32 OS X 10.7.
  • Loading branch information
cixtor committed May 3, 2012
1 parent 9c76565 commit c4b26ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mach_override/mach_override.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ static AsmInstructionMatch possibleInstructions[] = {
{ 0x3, {0xFF, 0x4F, 0x00}, {0x8B, 0x45, 0x00} }, // mov $imm(%ebp), %reg
{ 0x3, {0xFF, 0x4C, 0x00}, {0x8B, 0x40, 0x00} }, // mov $imm(%eax-%edx), %reg
{ 0x4, {0xFF, 0xFF, 0xFF, 0x00}, {0x8B, 0x4C, 0x24, 0x00} }, // mov $imm(%esp), %ecx
{ 0x5, {0xFF, 0x00, 0x00, 0x00, 0x00}, {0xB8, 0x00, 0x00, 0x00, 0x00} }, // mov $imm, %eax
{ 0x0 }
};
#elif defined(__x86_64__)
Expand Down

0 comments on commit c4b26ad

Please sign in to comment.