Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick, beginner MASM register question - DX:AX

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 :)

like image 614
F. P. Avatar asked Apr 19 '10 13:04

F. P.


People also ask

What is AX and DX in assembly language?

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.

What does DX ax mean?

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.

What is SI in assembly language?

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.


1 Answers

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.

like image 196
Vlad Avatar answered Dec 01 '22 17:12

Vlad