Aas-arithmetic instruction-microprocessor, Assembly Language

AAS: ASCII Adjust AL After Subtraction AAS instruction correct the result in the AL register after subtracting operation of two unpacked ASCII operands. The result is in unpacked decimal format. If the lower 4 bits of the AL register are higher than value 9 or if the AF flag is set to 1, the AL is decremented by  the value 6 and AH register is decremented by value 1, the CF and AF are set to  1. Or else, the CF and AF are set to 0, the result required no correction. As a conclusion, the upper nibble of AL is set 00 and the lower nibble might be any number from the range 0 to 9.

The process is same to the AAA instruction.  AH is modified as difference of the past contents (Typically zero) of AH and the borrow for adjustment.

 

Posted Date: 10/12/2012 1:40:45 AM | Location : United States







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

Write discussion on Aas-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
#I submitted my assignment this morning and it is still processing. How long does it take?

#question.flow chart for a program to find out the number of even and odd numbers from a given series of 16-bit hexadecimal numbers.

AAD stand for what??

Multiply two numbers by using shift and rotate instruction

DEC : A powerful new Alpha 64 bit RISC computer chip was introduced in the year 1977, as new VAX (Virtual Address Extension) Computer. The VAX was 32 bit computer line based on

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

Pointer and Index Registers The pointers contain offset within the specific segments. The pointers BP, IP and SP generally containoffsets within thedata, code and stack segment

I NEED PROJECT OF COFE SHOP

AAA: ASCII Adjust after Addition operation the AAA instruction is executed after an ADD instruction that adds 2 ASCII coded operands to give a byte of outcome in the AL. The AAA i

1) Write an 80x86 assembly language program in EXE file format to do the following tasks: a) Open and read the contents of a file into memory (use at least 1 kB). b) Sort the li