Das-arithmetic instruction-microprocessor, Assembly Language

DAS: Decimal Adjust after Subtraction:- This instruction converts the result of subtraction operation of 2 packed BCD numbers to a valid BCD number. The subtraction operation has to be only in the AL. If the lower nibble of AL is higher than the value 9, this instruction will subtract 06 from lower nibble of the AL. If the output of subtraction operation sets the carry flag or if the upper nibble is higher than value 9, it subtracts 60H from the AL. This instruction modifies the CF, AF, PF, SF and ZF flags. The OF is not defined after DAS instruction. The instance is following:

Example :

1988_DAS.jpg

Posted Date: 10/12/2012 1:55:06 AM | Location : United States







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

Write discussion on Das-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions


Please let me know if you can do an assignment in the next 12 hours

When Seen in the choir, Terry was the picture of an angelic devil. I have to underline the predicate twice

You are to write an assembly language program called subfaq.s that computes the generalized subfactorial function of nonnegative integer inputs i0 and n. The generalized subfactori

MLIL: Unsigned Multiplication Byte or Word: This instruction multiplies an unsigned byte or word by the contents of the AL. The unsigned byte or word can be in any one of the gene

Cache Memory Caching is a technology based on the memory subsystem of any computer. The majoraim of a cache is to accelerate the computer while keeping the cost of the computer

segmentation and overlapping in assemble language

DMA controller :     Steps include in transferring a block of data from I/O devices (for example a disk) to memory: 1. CPU sends a signal to initiate disk transfe

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