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

how we can multiply two 8 bit number with rotation

PTR : Pointer:- The pointer operator which is used to declare the type of a variable, label or memory operand. The operator PTR is prefixed by either WORD or BYTE. If the prefi

1. The microwave has a clock (hh:mm:ss am/pm) and the user should be able to change the clock at any time. 2. For cooking the user should first enter the time. The user can ente

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

write an assembly program to display triangular star like shape

CAN U GIVE BRIEF THEORY

hi, i''m new to assembly language and my teacher told us to look for an example of the odd and even numbers program using debug.exe in ms dos as a guide since we just started. plea

Write Policy A write policy determines how the cache deals with a write cycle. The 2 common write policies areWrite-Throughand Write-Back. In Write-Back policy, the cache behav

to find the matrix addition