Вы находитесь на странице: 1из 2

EGS Pillay Engineering College, Nagapattinam Department of Computer Science & Engineering System Software

1. 2. 3. 4. 5. 6. 7. 8. What are the maximum memory size of SIC and SIC/XE, respectively? How many addressing modes do SIC and SIC/XE support, respectively? How many instructions are there in the SIC/XE instruction set? How does SIC determine whether the result of a TD instruction is successful? What are the two general purpose registers in SIC/XE? What is the size of F register? Why does the assembler need to handle the source files in two passes? Translate (by hand) the following assembly program to SIC object code. (The output format should contain H record, T record, and E record. )
Source statement STRCPY FIRST MOVECH START LDX LDCH STCH TIX JLT BYTE RESB WORD WORD END 1000 ZERO STR1,X STR2,X ELEVEN MOVECH CTEST STRING 11 0 11 FIRST

STR1 STR2 ZERO ELEVEN

9. Describe the main difference between the immediate addressing and the literal.

EGS Pillay Engineering College, Nagapattinam Department of Computer Science & Engineering System Software
1. 2. 3. 4. 5. 6. 7. 8. What are the maximum memory size of SIC and SIC/XE, respectively? How many addressing modes do SIC and SIC/XE support, respectively? How many instructions are there in the SIC/XE instruction set? How does SIC determine whether the result of a TD instruction is successful? What are the two general purpose registers in SIC/XE? What is the size of F register? Why does the assembler need to handle the source files in two passes? Translate (by hand) the following assembly program to SIC object code. (The output format should contain H record, T record, and E record. )
Source statement STRCPY FIRST MOVECH START LDX LDCH STCH TIX JLT BYTE RESB WORD WORD END 1000 ZERO STR1,X STR2,X ELEVEN MOVECH CTEST STRING 11 0 11 FIRST

STR1 STR2 ZERO ELEVEN

9. Describe the main difference between the immediate addressing and the literal.

Answers 1. 2. 3. 4. 5. 6. 7. 215/220 bytes(p.5/p.7) 2/18 (p.6/p.499) 59 (p.496~498) CC (condition code) = LT means the device is ready (p.7) S,T (p.7) 48bits (p.7) Pass1: assign addresses to all symbol Pass2: generate object code in order to solve the problem of forward reference

8.

Object Program HSTRCPY00100000002B T0010000F04102550900F54901A2C1028381003 T00100F0B5445535420535453494E47 T0010250600000000000B E001000 9.

With immediate addressing, the operand value is assembled as a part of the machine instruction. With a literal, the assembler generates the specified value as a constant at some other memory location. The address of this generated constant is used as the target address for the machine instruction.

Вам также может понравиться