國立暨南國際大學 94 學年度第一學期第四次小考試卷

 
科目名稱:系統程式 開課系所:資訊工程 學系 任課教師
吳坤熹
系所別:
年級:
學號:
姓名:
考試日期
2005.12.16

(考試時間: 09:10-09:30AM)



QUIZ4
START      0
CHARZ
BYTE
C'Z'
C1
RESB
1
FIRST
LDCH
CHARZ

STCH
C1

END
FIRST

(1) Assemble the above SIC program and generate the relocatable object program, according to the file format in Figure 3.5.






(2) Assemble the same source program and generate the object program with relocation bit, as demonstrated in Figure 3.7.





(3) When these two different formats of object file are stored in the hard disk, how many bytes do they occupy, respectively?  (Note: Do not forget to count the newline character.)



(4) When these two different formats of object file are loaded into the computer memory, how many bytes do they occupy, respectively?