UniversityEssayServices

Tutorial 6 – Week 7

  1. Assume that register R and memory cells 80 and 81 contain the following values:

R: 20               memory cell 80: 43      memory cell 81: 97
Using the instruction set shown in Figure 6.5 (slide 12 of Lecture 6), determine what value ends up in register R and memory cells 80 and 81 after each of the following instructions each is executed. Assume that each question begins with the values shown above.

  • LOAD 80
  • STORE 81
  • COMPARE 80
  • ADD 81
  • IN 80
  • OUT 81

 

  1. Assume that memory cell 50 contains a 4 and label L is equivalent to memory location 50. What value does each of the following LOAD instructions load into register R?

 

  • LOAD 50
  • LOAD 4
  • LOAD L
  • LOAD L+1 (Assume that this is legal)

 

  1. Assume that register R and memory cells 60 and 61 contain the following values:

R: 13               memory cell 60: 472    memory cell 61: -1
Using the instruction set shown in Figure 6.5 (slide 12 of Lecture 6), determine what value ends up in register R and memory cells 60 and 61 after each of the following instructions each is executed. Assume that each instruction starts from the above conditions.
 

  • LOAD 60
  • STORE 60
  • ADD 60
  • COMPARE 61
  • IN 61 (Assume user enters 50)
  • OUT 61

 

  1. Say we accidentally execute the following piece of data:

 
.DATA  16387
Describe exactly what happens. Assume that the format of machine language instructions on this system is the same format as in Figure 6.13 (slide 25).
 

  1. What is the assembly language equivalent of each of the following binary machine language instructions? Assume the format described in Figure 6.13 and the numeric op code values shown in Figure 6.5.

 
 

  • 0101001100001100
  • 0011000000000111

 

  1. Look at the assembly language program in Figure 6.8 (Slide 17). Determine the physical memory address associated with every label in the symbol table. Assume that the program is loaded beginning with memory location 0.

 
 
————————————————-

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Sales Offer

Coupon Code: SAVE25 to claim 25% special special discount
SAVE