Difference between revisions of "CSC270 Homework 7 2016"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <center> <font size="+2">Page under construction!</font> </center> <P> center|300px")
 
Line 7: Line 7:
 
<P>  
 
<P>  
 
[[File:UnderConstruction.jpg|center|300px]]
 
[[File:UnderConstruction.jpg|center|300px]]
 +
<br />
 +
=Problem 1: Reverse Engineering=
 +
<br />
 +
* Reconstruct the 6800 program whose hexadecimal code is shown below.  The first 4-digit number represents the address of the first byte on the line.  The ? character indicate an unknown value.
 +
 +
0000 03 04 ?? ??
 +
0006 96 01 91 02 2F 09 97 03 D6 02 D7 04 7E 00 1B 97 04 D6 02 D7 03 7E 00 06
 +
 +
* Write the assembly language program corresponding to these hex bytes, and document each instruction.
 +
* Indicate in the header of the program what the program computes, in terms of its variables.  In other words, what ends up in the variables that are not initialized initially?
 +
* Assuming that the clock of the 6811 is 1 MHz, i.e. that 1 cycle lasts 1 uS, how long does a loop last?
 +
* How many loops will this 1 MHz 6811 execute in 1 second.

Revision as of 10:52, 22 March 2016

--D. Thiebaut (talk) 07:10, 22 March 2016 (EDT)


Page under construction!

UnderConstruction.jpg


Problem 1: Reverse Engineering


  • Reconstruct the 6800 program whose hexadecimal code is shown below. The first 4-digit number represents the address of the first byte on the line. The ? character indicate an unknown value.
0000 03 04 ?? ??
0006 96 01 91 02 2F 09 97 03 D6 02 D7 04 7E 00 1B 97 04 D6 02 D7 03 7E 00 06
  • Write the assembly language program corresponding to these hex bytes, and document each instruction.
  • Indicate in the header of the program what the program computes, in terms of its variables. In other words, what ends up in the variables that are not initialized initially?
  • Assuming that the clock of the 6811 is 1 MHz, i.e. that 1 cycle lasts 1 uS, how long does a loop last?
  • How many loops will this 1 MHz 6811 execute in 1 second.