0% found this document useful (0 votes)
96 views

System Software Tutorial

This document provides instructions for two tutorials on hand assembly of SIC programs. It asks students to generate object code, list the symbol table contents, and list the contents of the intermediate file for two SIC source programs. The first program performs arithmetic operations on variables and stores the result. The second program sums elements in a table using indexing and a loop. Students are asked to submit their work by a specified date in their systems software notebook.

Uploaded by

Shaiju Paul
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

System Software Tutorial

This document provides instructions for two tutorials on hand assembly of SIC programs. It asks students to generate object code, list the symbol table contents, and list the contents of the intermediate file for two SIC source programs. The first program performs arithmetic operations on variables and stores the result. The second program sums elements in a table using indexing and a loop. Students are asked to submit their work by a specified date in their systems software notebook.

Uploaded by

Shaiju Paul
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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