You are on page 1of 1

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING, CEC

SYSTEM SOFTWARE AND COMPILER DESIGN (17CS63)


ASSIGNMENT – I (WEEK-1)

VI SEMESTER
Construct the object code for each statement and write the object program for the
following SIC/XE program.
SUM START 0
FIRST LDX #0
LDA #0
+LDB #TABLE2
BASE TABLE2
LOOP ADD TABLE,X
ADD TABLE2,X
TIX COUNT
1
JLT LOOP
+STA TOTAL
RSUB
COUNT RESW 1
TABLE RESW 2000
TABLE2 RESW 2000
TOTAL RESW 1
END FIRST
Given that: LDX=04, LDA=00, LDB=68, ADD=18, TIX=2C, JLT=38,
STA=0C,RSUB=4C

Generate the target address for the following machine instruction


i) 032600h
2 ii) 03C300h
iii) 0310C303h
if (B) = 006000 (PC) = 003000 (X)=000090h
Hint: Identify the correct addressing mode before generating target address
3 Develop a SIC/XE program to copy the string “COMPUTER SCIENCE
ENGINEERING” from STR1 to another string STR2

____________________
Suresha D & Sathisha MS

You might also like