Tag: System Software Question Bank
System Software – SIC/XE Program to clear 20 byte string to empty
Problem Statement Write a sequence of instructions for SIC/XE to clear a 20-byte string to all blanks. Solution Line Number(ac) Code Description 1 LDX ZERO 2 LOOP LDCH BLANK 3 STCH STR1,X 4 TIX TWENTY 5 JLT LOOP 6 STR1 RESW 20 7 BLANK BYTE C ‘ ‘ 8 ZERO WORD 0 9 TWENTY WORD 20
System Software – SIC/XE program to clear 20 byte string using Immediate addressing mode.
Problem Statement Write a sequence of instructions for SIC/XE to clear a 20-byte string to all blanks. Use immediate addressing and register-to-register instructions to make the process as efficient as possible. Solution Line Number(ac) Code Description 1 LDT #20 2 LDX #0 3 LOOP LDCH #0 4 STCH STR1,X 5 TIXR T 6 JLT LOOP 7 STR1 RESW 20…
System Software – SIC/XE Program to set ALPHA=GAMMA*BETA-9 using Register Operation
Problem Statement Write a sequence of instructions for SIC/XE to set ALPHA=GAMMA*BETA-9 using register operation. Solution Line Number(ac) Code Description 1 LDA GAMMA 2 MUL BETA 3 SUB 9 4 STA ALPHA
System Software – SIC/XE program to copy a character string to another string
Write a SIC/XE program a program to copy a character string to another char string
System Software – Given the target address generated for the following machine instruction
System Software – Given the target address generated for the following machine instruction