Skip to content

Commit

Permalink
fix int 21h ah=4c
Browse files Browse the repository at this point in the history
  • Loading branch information
xor2003 committed Jun 9, 2024
1 parent 0494564 commit fac2ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angr_platforms/X86_16/instr_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ def int3(self) -> None:

def int_imm8(self) -> None:
self.emu.lifter_instruction.put(self.emu.constant(self.instr.imm8), "ip_at_syscall")
exit = self.instr.imm8 == 0x21 and self.emu.get_gpreg(reg8_t.AH) == 0x4c
self.emu.lifter_instruction.jump(not exit, self.emu.get_gpreg(reg8_t.AL), JumpKind.Exit)
exit = self.emu.constant(self.instr.imm8 == 0x21) and self.emu.get_gpreg(reg8_t.AH) == 0x4c
self.emu.lifter_instruction.jump(~exit, self.emu.get_gpreg(reg8_t.AL), JumpKind.Exit)
self.emu.lifter_instruction.jump(None, self.emu.get_gpreg(reg16_t.AX), JumpKind.Syscall)
#raise Exception("INT %x" % self.instr.imm8)
#self.emu.queue_interrupt(self.instr.imm8, False)
Expand Down

0 comments on commit fac2ccb

Please sign in to comment.