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

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

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

Consider the following program.

QUIZ3
START      1000
FIRST LDA
ZERO

LDX
ZERO
LOOP
ADD
TABLE

TIX
=X'000003'

JLT
LOOP

ADD
W2
TABLE    
BYTE
X'01020304050607'

LTORG

ZERO
WORD
0

ORG
TABLE
W1
RESW
1
W2
RESW
1

END
FIRST

After you assemble it to object code, answer the following questions.

(1) What would be the the size of the generated object code?  (Note: this is the code length shown in the Header record.)




(2) What would be the address assigned to the literal =X'000003'?




(3) Run the program.  What is the value of register A when (PC) = 001012?