System Software – SIC/XE program to clear 20 byte string using Immediate addressing mode.

Published on June 27, 2016 by abundantcode

Filed under Assembly Language

Last modified June 27, 2016

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 4863 times

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)CodeDescription
1LDT #20 
2LDX #0 
3LOOP LDCH #0 
4STCH STR1,X 
5TIXR T 
6JLT LOOP 
7STR1 RESW 20 

Leave a Comment


x

You might be Interested in these Posts

System Software - SIC program to set 100 elements of array to Zero

Problem Statement Suppose that ALPHA is an array of 100 words, as defined in Fig. 1.5(a). Write a s...

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 blan...

System Software - SIC/XE Program to divide BETA by GAMMA and set ALHPA to floating quotient

Problem Statement Write a sequence of instructions for SIC/XE to divide BETA by GAMMA, setting ALPH...