I am currently studying for an exam I'll have on x86 assembly.
I didn't have much luck googling for ":", too common of a punctuation mark :/
IDIV - Signed Integer Division
Usage: IDIV src
Modifies flags: (AF,CF,OF,PF,SF,ZF undefined)
Signed binary division of accumulator by source. If source is a byte value, AX is divided by "src" and the quotient is stored in AL and the remainder in AH. If source is a word value, DX:AX is divided by "src", and the quotient is stored in AL and the remainder in DX.
Taken from "Intel Opcodes and Mnemonics"
What does DX:AX mean?
Thanks a lot for your time :)
CX is known as the count register, as the ECX, CX registers store the loop count in iterative operations. DX is known as the data register. It is also used in input/output operations. It is also used with AX register along with DX for multiply and divide operations involving large values.
DX:AX is the 32-bit value to use as the numerator of your division. The most significant 16 bits are held in DX , the least significant in AX . It's a way of specifying a 32-bit value in an otherwise 16-bit environment.
SI is called source index and DI is destination index. As the name follows, SI is always pointed to the source array and DI is always pointed to the destination. This is usually used to move a block of data, such as records (or structures) and arrays. These register is commonly coupled with DS and ES.
It's a pair of registers: DX
and AX
.
The numerator itself is a double word. The upper word of the numerator should be stored at DX
, the lower one in AX
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With