2 Marks With Answers
2 Marks With Answers
2.Format 2:
8 4 4
OP R1 R2
3.Format 3:
6 1 1 1 1 1 1 12
N i x b p e Disp
OP
4.Format 4:
6 1 1 1 1 1 1 20
n i x b p e Disp
OP
n-indirect
i-immediate
x-indexed
b-base
p-pc
e-extended
frac: 0~1
exp: 0~2047
14. Illustrate how input and out operations are performed in SIC/XE.
SIO, TIO, HIO: start, test, halt the operation of I/O device.
15. What are the registers used in SIC/XE?
Register:
Mnemonic Number Special use
B 3 Base register for addressing
S 4 General working register
T 5 General working register
F 6 Floating point accumulator
16. What are the four assembler directives used in the SIC assembler language?
WORD BYTE RESW RESB
UNIT-II
PART A
1. Define assembler.
An assembler is a set of programs that accepts as input an assembly
language program and gives as output its machine equivalent plus other
information to the loader.
6. Give the two major internal data structures used in the assembler.
SYMTAB is used in pass 1.
This includes the name and value for each label in the source
program together with the flags to indicate error conditions.
SYMTAB & OPTAB are used in pass 2.
The information in the opcode tab is predefined. Symtab used is from
the output of pass 1.
UNIT-III
PART A
1. Define loader.
Loading brings the object program into memory for execution. A loader is
a system program that performs the loading function. Many loaders also support
relocation and linking.
6. Give the main internal data structures used in the linking loader.
External Symbol Table ESTAB analogous to symbol table to store the
name and address of each external symbol in the set of control sections being
loaded.
UNIT-IV
PART-A
1. Define macro definition and macro expansion.
A macro definition is enclosed between a macro header (MACRO) and a
macro end (MEND) statements. Macro definition is typically located at the start
of the program.
UNIT-V
PART-A
1. Define interactive editor.
Interactive Editor is a computer program that allows a user to create and revise
a target document.
@@@@@@@@@@@