Write a program that will store the contents of an accumulator and flag register at locations 2000h and 2001h.



Write a program that will store the contents of an accumulator and flag register at locations 2000h ..

Answer / Aashish Kumar

The following assembly code writes the contents of the Accumulator (AL) and Flag Register (AF) into memory locations 2000h and 2001h respectively:nnmov al, <some value> ; store data in accumulatornnmov ah, al ; copy AL to AH for CF flagnsbb al, al ; set carry flag based on AL valuensahf ; transfer AF register content to AHnmov word ptr 2000h, ax ; store the combined AX to memory location 2000h

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More 86 Family Interview Questions

what are the differences between isolated i/o and memory mapped i/o

1 Answers  


What are the different types of arithmetic operations that can be performed by the 8085 microprocessor?

1 Answers  


What is general purpose registers in 8086?

1 Answers  


Discuss pc and sp?

1 Answers  


The interrupt response time is determined by?

1 Answers  


explain the trap input for the 8085.

1 Answers  


Which is the stack used in 8085?

1 Answers  


What are the main differences between the 8085 and 8086 microprocessor?

1 Answers   Zensar,


how to know weather the controller is 16 bit or 32 bit?

1 Answers   Bosch,


explain the different types of control flags for the 8086?

1 Answers  


7. What are tri-state devices and why they are essential in a bus oriented system?

5 Answers   Electrical Tech, ISRO, Satyam, Wipro,


What are set up time & hold time constraints What do they signify Which one is critical for estimating maximum clock frequency of a circuit?

1 Answers   AMD,


Categories