NCNU System Programming Mid-Term (2)

Date: December 30th, 2005
Time: 09:10-12:00

  1. (60%) After you disassemble the following SIC program, answer these questions:
    1. If we modify the first three bytes from 00004B to 000000, will it make any difference?
      1. YES
      2. NO
    2. If we modify Bytes[18:1A] from 2C004B to 2C0000, will it make any difference?
      1. YES
      2. NO
    3. What is the ID of the device accessed by this program?
      1. 57
      2. F1
      3. 06
      4. 87
        HEXAM2 00000000005A
    T0000002000004B04004848001E2000540C005848001E1800585480002C004B3C0006E000
    T000020205730001ED8005728004230008028004538001E1C004528005138003F1C004E4C
    T00004020000000000400003000008000000000000700000A000010F1000000
    E000000
  2. (40%) Consider the three control sections in Figure 3.8. Suppose they are linked in the sequence of PROGC+PROGB+PROGA, and the beginning load address is 001000.
    1. Calculate the value of REF5:
      1. FFFFE4
      2. 000008
      3. 001042
      4. 004126
    2. Calculate the value of REF8:
      1. FFFFC0
      2. 000083
      3. 001051
      4. FFFFA1