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 want to do a program as a game by using the Microcontroller 8051 with the assembly language, by using 4*4 keypad and its matrix display. I have to use the keypad for playing the

XOR: Logical Exclusive OR: The XOR operation is again carried out in a similar way to the AND and OR operation. The constraint over operands are also similar. The XOR operation pr

write and run a programme using 8086 assembly language that interchange the lower four bits of AL registered with upper four bits.

The Pentium Pro    Introduced in the year 1995, the Pentium Pro reflected  still  more  design  breakthroughs.  The Pentium Pro may process 3 instructions in a single clock cy

Write a program to solve problem 9, Summation Program, on page 179 of chapter 5 in the textbook (book:kip Irvine Assembly Language sixth edition)

Linking a program The DOS linking program LINK.EXE links the different object modules of function library routines and source program to produce an integrated executable code o

move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H..

8251 Programmable/Communication Interface As an instance of a serial interface device let us suppose Intel's 8251 A programmable communication interfaces. The 8251A is diagram

 Pin Description of 8086 The microprocessor 8086 is a 16-bit CPU available in 3 clock rates, for example 5, 8 and 10 MHz, packaged in a40 pin CERDIP or plastic package. The 8

program to arrange a given set of numbers in descending order