hwk6-sol - B02309C Computer Organization - Homework 6 -...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
B02309C Computer Organization - Homework 6 - Name:_______________ Assigned: Tuesday, December 26 Due: Tuesday, January 2 Submit your assignment through the ecampus system (ecampus.chu.edu.tw) with the submission ID "Homework 6". Please write down the steps of the calculation. You should do your homework by yourself and do not copy other's homework or let other to copy your homework. In both cases the score of the work will be zero. (60 points) 1. (6 points) List the hexadecimal code for the following program (hand assemble it). Hex Address Label Instruction 100 Load A 101 Add One 102 Jump S1 103 S2, Add One 104 Store A 105 Halt 106 S1, Add A 107 Jump S2 108 A, HEX 0023 109 One, HEX 0001 2. (4 points) What are the contents of the symbol table for the preceding program? Ans: 3. 1108 3109 9106 3109 2108
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
3108 9103 0023 0001 4. A 108 One 109 S1 106 S2 103 2. Given the instruction set for MARIE in this chapter: 1. (6 points) Decipher the following MARIE machine language instructions (write the assembly language equivalent): 1. 0010000000000111 2. 1001000000001011 3. 0011000000001001 2. (4 points) What are the potential problems (perhaps more than one) with the following assembly language code fragment (implementing a subroutine) written to run on MARIE? The subroutine assumes the parameter to be passed is in the AC and should double this value. The Main part of the program includes a sample call to the subroutine. You can assume this
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/06/2010 for the course CS it666 taught by Professor Tony during the Spring '06 term at 東京大学.

Page1 / 9

hwk6-sol - B02309C Computer Organization - Homework 6 -...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online