Question: 4.1 Part (a) Save the following numbers in memory starting from 0x1000. $3A,$3B,$5F,$6F,$8E,$9D,$8B,$81,$1B,$1C,$1E,$16,$18,$19,$18,$18,$2A,$1,$3,$4 Write a program that will print the contents of 20 successive memory

4.1 Part (a)

Save the following numbers in memory starting from 0x1000.

$3A,$3B,$5F,$6F,$8E,$9D,$8B,$81,$1B,$1C,$1E,$16,$18,$19,$18,$18,$2A,$1,$3,$4

Write a program that will print the contents of 20 successive memory loca-

tions (data values) starting at 0x1000. The output (data values) should be in

hexadecimal and there should be a space printed between the values.

4.2 Part (b)

Make a copy of Project folder Lab2A. The requirement is same as in part(a),

except you should pause for the user to press the space bar between the outputs.

Your program should print a value, wait for the user to press the space bar and

then print the next value and so on. Note that your program should ignore all

the keystrokes except the space bar.

Save this project folder as Lab2B.

4.3 Part (c)

Make a copy of Project folder Lab2B. Same requirement as above ((a) and (b)),

except you should maintain a counter.The counter should be initially one, and

incremented after each output. Your program should print the value of the

counter in decimal and then print the value in memory (in hexadecimal) with

the character : as separator.

e.g. Prints 01:3A 02:3B 03:6F 04: 8E 05:9D . . . .

it is an assembly proram and i need just part 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!