1. machine code move mem, immediate
- Posted by Craig Gilbert <cgilbert at CENNET.MC.PEACHNET.EDU> Sep 10, 1997
- 663 views
Does anybody know the hex code for the instruction 'mov <some mem address>,<some immediate val>'??????? I'm working on an interrupt handler that keeps blowing up on the mov instruction. Later, Craig
2. Re: machine code move mem, immediate
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Sep 10, 1997
- 688 views
Craig Gilbert wrote: > > Does anybody know the hex code for the instruction > > 'mov <some mem address>,<some immediate val>'??????? > Here's the codes: {#C7,#04,#00,#00,#00,#00,#FF,#FF,#FF,#FF}--mov dword ptr [0], #FFFFFFFF {#66,#C7,#04,#00,#00,#00,#00,#FF,#FF}--mov word ptr [0], #FFFF {#C6,#04,#00,#00,#00,#00,#FF}--mov byte ptr [0], #FF Just poke your address over the #00's and your immediate over the #FF's, or build the sequence like {#C7,#04} & int_to_bytes(address) & int_to_bytes(immediate) I hope this works for ya. -- _____ _____ _____ ________ /\ \ /\ \ /\ \ / \ \ / \____\ / \____\ / \____\ / _ \____\ / / ___/_ / /____/ / / ___/_ / / \ |____|/ / /\____\ / \ \ / / /\____\ \ \_/ / / \ \/ / ___/_\ \ \ \ \/ / ___/_ \ /____/ \ / /\ \\/\ \ \ \ / /\ \ \ \ \ \ \/ \____\ \ \ \ \ \/ \____\ \ \ \ \ / / \ \____\ \ / / \ \____\ \ / / \ / / \ / / \ / / \ / / \/____/ \ / / \/____/ \/____/ \/____/