Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Departement of Computer Science & Engg.

2017 – 21Batch ,(S5 CSE)


CS 303 System Software
Tutorial – 3
( Based on Module 2 : Hand Assembly of SIC Programs )

1. Generate the object code for the below SIC source program . Also list the
contents of SYMTAB and the intermediate file. Assume object code for the
mnemonic instruction as LDA=00, ADD=18, SUB=1C, STA=0C.

PGM1 START 1000


FIRST LDA GAMMA
ADD INCR
SUB ONE
STA DELTA
ONE WORD 1
GAMMA RESW 1
DELTA RESW 1
INCR RESW 1
END FIRST

2. Generate the object code for the below SIC source program . Also list the
contents of SYMTAB and the intermediate file. Assume object code for the
mnemonic instruction as LDX=04, LDA=00, ADD=18, TIX=2C, JLT=38,
STA=0C, RSUB=4C.

SUM START 4000


FIRST LDX ZERO
LDA ZERO
LOOP ADD TABLE,X
TIX COUNT
JLT LOOP
STA TOTAL
RSUB
TABLE RESW 2000
COUNT RESW 1
ZERO WORD 0
TOTAL RESW 1
END FIRST

NB:

➢ Submission Date : 3/09/2019, Tuesday


➢ Write it on the back side of System Software NoteBook

You might also like