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
hi!im looking for someone who expert in an assembly language and help me write the programmed!Thank you

Physical Memory Mapped I/O and Port I/O : CPU controlled I/O comes in 2 ways. Simply the difference is whether we utilize the normal memory addresses for I/O, this is mention

Write an assembly language program that will: accept keyboard input of a positive integer value N; compute the sum S= 1+ 2 + 3 + ... + N; print (output) the computed su

8237 modes : Intel 8237 can be set to four different type of style of transfer: 1) Single - One transfer at a time,  it allow processor access to the bus between transfers

errorlevel -302 ;prevents error code for this chipset __config 0x373A ;chip config PIC spec page 146 processor 16F877A ;chipset reset code

The addressing modes for the sequential control transfer instructions are described below:   1. Immediate: Immediate data is a part of instruction,in this type of addressin

assempbly language routine that takes an array named A containing n bytes of postive numebrs and fills two arranys, array B containing n words and array C containing n long words

Assembly Language: Inside the 8085, instructions are really stored like binary numbers, not a very good manner to look at them and very difficult to decipher. An assembler is

Explain the basic method for implementing paging

Difference between div and idiv