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

Published on June 27, 2016 by Senthil Kumar

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 10977 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) 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  

Leave a Comment


x

You might be Interested in these Posts

System Software - SIC/XE Program to set ALPHA equal to 4 * BETA - 9.

Problem Statement Write a sequence of instructions for SIC/XE to set ALPHA equal to 4 * BETA - 9. A...

Keywords in XAML Language Namespace

Below are some of the keywords defined in the Xaml Language Namespace Keywords in XAML Language Nam...

How to Get the File Version of the Assembly in .NET (C#)?

The developers can use the methods and properties available in the FileVersionInfo class to retrieve...