Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The brookshear machines shows data in memory locations 80–FF as a black and whit

ID: 3840806 • Letter: T

Question

The brookshear machines shows data in memory locations 80–FF as a black and white image, with one pixel per bit.

The image below can be put on the Brookshear machine display by writing a program that stores bit patterns in memory. Inspect the image carefully, and write a program to display it and then halt. The program must produce the pattern regardless of what was previously stored in memory, so it must write to every memory location from 80 to FF. The program itself may only be stored in locations 00 to 7F.

1) A description of an algorithm to solve the problem. This must describe the steps needed to solve the problem as precisely as possible, but without using BM assembly language. The control structure (loops, conditionals etc.) should be clearly shown. There should be no unnecessary or duplicated steps. Briefly explain how the algorithm solves the problem.

Explanation / Answer

Familiarize yourself with the simulation program by following the steps below to enter and execute the following machine language program. Address Content 10 23 11 1F 12 12 13 20 14 50 15 23 16 30 17 40 18 C0 19 00

Step 1: Translate the program in this experiment into English. 231F ___________________________________________________________________________________________ 1220 ___________________________________________________________________________________________ 5023 ___________________________________________________________________________________________ 3040 ___________________________________________________________________________________________ C000 ___________________________________________________________________________________________ Predict the final result. That is, explain what happens and what changes you expect to occur in memory. Predict: ________________________________________________________________________________________ ________________________________________________________________________________________________ ________________________________________________________________________________________________ ________________________________________________________________________________________________

Step 2: Run the simulation program and enter these three lines by typing this data in the input window. [10] 23 1F 12 20 50 23 30 40 C0 00 program begins at memory cell 10 [20] 03 value at memory cell 20 is 03 [PC] 10 set Program Counter to 10

Step 3: Transfer the data from the data input window to the simulated machine by clicking the Load Data button. Inspect the main display to confirm that the program has been properly placed in main memory starting at location 10 and that the program counter is set to 10. Then, execute a single machine cycle, fetch – decode – execute, by clicking the Single Step button. At this point, what is the value stored in : program counter ? _______ instruction register ? _______ register 3 ? _______

Step 4: Execute a single machine cycle again, Record the changes in the registers. program counter ? _______ instruction register ? _______ register 2 ? _______

Step 5: Execute a single machine cycle again, Record the changes in the registers. program counter ? _______ instruction register ? _______ register 0 ? _______

Step 6: Execute a single machine cycle again, Record the changes in the registers. program counter ? _______ instruction register ? _______ memory location 40 ? _______

Step 7: Execute a single machine cycle again, Record the changes in the registers. program counter ? _______ instruction register ? ______

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote