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 Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
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.