Imul-arithmetic instruction-microprocessor, Assembly Language

IMUL: Signed Multiplication: This instruction multiplies a signed byte by a signed bit in source operand e in the register AL or signed word in source operand by signed word in the register AX. The source can be a general purpose register, index register, memory operand or base register, but it can't be an immediate data. In the case of 32- bits results, the higher order word (MSW) is stored in  the DX and the lower order word is stored in the register AX. The PF, AF, ZF, and PF flags are undefined after IMUL. If AH and DX both contain parts of 16 and 32-bit result respectively, CF and OF both will be set. The AL and AX are the implicit operands in case of 8 bits and 16 bits multiplications respectively. Sign bit and CF fills the unused higher bits of the result, the AF are cleared. The example instructions are given as follows:

Example :

1. IMUL     BH

2. IMUL     CX

3. IMUL     [SI]

Posted Date: 10/12/2012 2:05:27 AM | Location : United States







Related Discussions:- Imul-arithmetic instruction-microprocessor, Assignment Help, Ask Question on Imul-arithmetic instruction-microprocessor, Get Answer, Expert's Help, Imul-arithmetic instruction-microprocessor Discussions

Write discussion on Imul-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
Interrupt System Based on Single 8259 A The 8259A is contained in a 28-pin dual-in-line package that need only a + 5-V supply voltage.  Its organization is shown in given figur

This unit introduces the topic of evaluating interactive products. It is a short unit as evaluation is discussed in more detail in Block 4. Its brevity should give you additional t


Convert 751 to hex and show what it would look like stored at TheNumber WORD ? (hint: answer in hex pairs)

CMPS : Compare String Byte or String Word:-The CMPS instruction may be utilized to compare two strings of Words or byte. The length of the string ought to be stored in the CX. If

LDS/LES Instruction execution :  LAHF : Load AH from Lower Byte of Flag: - This instruction loads the AH register with the lower byte of the flag register. This instruction ca

Interrupt When the CPU detects an interrupt signal, it stops activity of current and jumps to a special routine, known an interrupt handler. This handler then detects why the i

how we can multiply two 8 bit number with rotation

Part A: Bitwise Logical and Shift Operations Create a SPARC assembly language program that extracts a bit-field from the contents of register %l0. The position of the rightmos

init_lcd                        ;(this initialises a 2 row lcd)     bcf     TRISA,0             ;PORTA bit 0 as an output (lcd RS pin)     bcf     TRISA,1             ;PORTA bit 1