CSC270 Homework 7 2016

From dftwiki3
Revision as of 10:52, 22 March 2016 by Thiebaut (talk | contribs)
Jump to: navigation, search

--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.