Please help with filling out the following table. Please note, that the table used in previous questions is not the corr

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Please help with filling out the following table. Please note, that the table used in previous questions is not the corr

Post by answerhappygod »

Please help with filling out the following table. Please note,
that the table used in previous questions is not the correct one.
They are two different questions.
Please Help With Filling Out The Following Table Please Note That The Table Used In Previous Questions Is Not The Corr 1
Please Help With Filling Out The Following Table Please Note That The Table Used In Previous Questions Is Not The Corr 1 (46.62 KiB) Viewed 65 times
Please Help With Filling Out The Following Table Please Note That The Table Used In Previous Questions Is Not The Corr 2
Please Help With Filling Out The Following Table Please Note That The Table Used In Previous Questions Is Not The Corr 2 (7.24 KiB) Viewed 65 times
Please Help With Filling Out The Following Table Please Note That The Table Used In Previous Questions Is Not The Corr 3
Please Help With Filling Out The Following Table Please Note That The Table Used In Previous Questions Is Not The Corr 3 (19.75 KiB) Viewed 65 times
Task Instructions -ALU BUDE ALU Dregister instruction Mux16 A register OUM ALU Mux16 inM input writeM Are Up с addressM memory address output reset reset PC PC Program Courteout Figure 1: Hack Computer 1. Consider the Hack computer block diagram shown in Figure 1) that you leamt during Week 8. 2. Imagine the Hack computer shown in Figure 1 is tasked with executing the Hack assembly code shown in Figure 2 The objective of this program is to implement integer division and store the result. Specifically, it carries out the following operation: q = n1/n2. It should be assumed that in all instances, 12 > 0.

Code Line A- D- M- ALU Data Instruction Program Control/Address/ register register Register memory Memory Counter Data bus (starting from 12) #12 NA NA The A- register is set to 16 M reg. ister points to the memory that stores the vari- able ni, RAM[16] The data mem- огу 30- cessed to read RAM10 that stores the value of ni The in- struction memory input is set to address of 13 The program counter is set to PC++ ad- dress of #13 in- struction The control bits are sent to A register to load the value 16. The address of vari- able ni is put into the address bus to CON the memory location. The control bits are sent to the PC to in- crement its value by 1. #13 #14 #15 16 #17 #18 #19 #20 #21 #22 #23 Table 1: Line lsy line explanations 3. Imagine that you are at the beginning of the LOOP (#11). Assume that the values of nl and n2 are 6 and 2. The variables n1, n2, and q are stored at registers 16, 17, and 18, respectively. 4. Using your knowledge gained in the unit so far, complete the Table 1 to show what occurs at each entity, at each line of the code during this iteration. The first line is completed as an ex-

5. Create the given Table I in a Word document (or a similar text editor) and then fill in the information for lines 13 - 23. Hint: It may be useful to run this code in the CPU Emulator and examine what happens at each step.

#1 #2 #3 #4 GRO //set RO D-M Onl M-D// nl-RO #5 #6 #7 #8 R1 //set Al. Assume the value in Rl will always be> DEM 2 MED// n2-R1 69 M=0 // 4 - 0 #10 #11 179 = nl/n2 LOOP n1 #12 #13 #14 D-M n2 DED-M FINISH 415 416 417 D; JLT #18 n1 M = D // nl - nl-n2 419 A2D A21 29 M = M = 1 #22 #23 #24 LOOP QAJMP FINISH) #25 #26 #27 IEND) END QAJME
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply