科目名稱:系統程式 | 開課系所:資訊工程 學系 | 任課教師 |
吳坤熹 |
||
系所別: |
年級: |
學號: |
姓名: |
考試日期 |
2005.10.21 |
(考試時間: 09:10-09:20AM)
1. Translate (by hand) the following assembly program to SIC object code. (The output format will look like Figure 2.3, which contains H record, T record, and E record.)SUM |
START | 1000 |
FIRST |
LDA |
ZERO |
LDX |
ONE |
|
LOOP |
STX |
I |
ADD |
I |
|
TIX |
ELEVEN | |
JLT |
LOOP |
|
ONE |
WORD |
1 |
I | RESW | 1 |
ZERO |
WORD |
0 |
ELEVEN | WORD |
11 |
END |
FIRST |