Trouble with opcodes
Trouble with opcodes
Hi! A very easy and fast question: what is the complete hex code of mov Ev, Iv where Ev=AX and Iv is 12? Trying with nasm is completely not-usefull because it use the opcode mov AX, Iv that doesn't require MOD R/M byte.
Re: Trouble with opcodes
C7 C0 12 00
Re: Trouble with opcodes
Thank you! The mem bits are empty?
Re: Trouble with opcodes
Well, it's the register bits that are ignored. The memory bits are 11xxx000, meaning AX.
- thepowersgang
- Member
- Posts: 734
- Joined: Tue Dec 25, 2007 6:03 am
- Libera.chat IRC: thePowersGang
- Location: Perth, Western Australia
- Contact:
Re: Trouble with opcodes
For future reference, look at the end of Volume 2A of Intel Manuals for the mov instruction.Karlosoft wrote:Hi! A very easy and fast question: what is the complete hex code of mov Ev, Iv where Ev=AX and Iv is 12? Trying with nasm is completely not-usefull because it use the opcode mov AX, Iv that doesn't require MOD R/M byte.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc