Push pop using indirect addressing
Not what you're looking for?
Create a stack area at 1000h. Push 10h bytes, located at data memory addresses 60000h to 6000fh, on the stack using indirect addressing. Then pop the stack to memory addresses 62000h to 6200fh using indirect addressing. Load unique data into the 10h bytes in order to test the program.
Purchase this Solution
Solution Summary
Create a stack area. Pop the stack to memory addresses using indirect addressing.
Solution Preview
Solution to Posting ID: 31600
/*Load Immediate Stack Ptr */
LXI SP,1000H
/*Load HL Direct - which is now memory (M = 60000) */
LHLD 60000H
MVI M,10H
MOV B,M
PUSH B
INR M /* M = 60001 */
MVI M,11H
MOV B,M
PUSH B
INR M
MVI M,12H
MOV B,M
PUSH B
INR M
MVI M,13H
MOV B,M
PUSH B
INR ...
Purchase this Solution
Free BrainMass Quizzes
Basic Networking Questions
This quiz consists of some basic networking questions.
C# variables and classes
This quiz contains questions about C# classes and variables.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
C++ Operators
This quiz tests a student's knowledge about C++ operators.