CodersEditor Tutorials

CodersEditor Tutorials

  • Online IDE
  • Q&A
  • C Programming
  • Java
  • GraphQL.NET
  • System Software

›SIC & SIC/XE Programs

System Software

    SIC & SIC/XE Programs

    • SIC Program to set ALPHA equal to Product of Beta and Gamma
    • SIC/XE Program to set ALPHA equal to 4 * BETA – 9
    • SIC/XE Program to swap the ALPHA and BETA
    • SIC Program to set ALPHA equal to the integer portion of BETA / GAMMA
    • SIC/XE Program to divide BETA by GAMMA, setting ALPHA to the integer portion of the quotient and DELTA to the remainder
    • SIC/XE Program to divide BETA by GAMMA, setting ALPHA to the value of the quotient
    • SIC/XE program to clear 20 byte string using Immediate addressing mode
    • SIC program to set 100 elements of array to Zero
    • SIC/XE Program to clear 20 byte string to empty
    • SIC/XE Program to set ALPHA=GAMMA*BETA-9 using register operation
    • SIC/XE Program to set 100 elements of the array to 0 using immediate addressing mode
    • SIC/XE Program to arrange an array of 100 words in ascending order
    • SIC/XE Program to multiply two arrays
    • SIC/XE Program to find the maximum element in the array and store result in MAX
    • SIC/XE Program to write a subroutine for SIC that writes record on to device 05
    • SIC/XE Program to write a subroutine for SIC that will read a record into a buffer
    • SIC/XE Program to Write a subroutine to read a record into a buffer
    • SIC/XE program to copy a character string to another string

SIC/XE Program to set 100 elements of the array to 0 using immediate addressing mode

This System Software program demonstrates an SIC/XE program to set all 100 elements of the array to 0 using immediate addressing and register-to-register address mode.

Assume that ALPHA is an array of 100 words. Write a sequence of instructions for SIC/XE to set all 100 elements of the array to 0. Use immediate addressing and register-to-register instructions to make the process as efficient as possible.

Source Code

Line NumberCodeComments
1LDS #3
2LDT #300
3LDX #0
4LOOP LDA #0
5STA ALPHA, X
6ADDR S, X
7COMPR X, T
8JLT LOOP
9ALPHA RESW 100
← SIC/XE Program to set ALPHA=GAMMA*BETA-9 using register operationSIC/XE Program to arrange an array of 100 words in ascending order →
CodersEditor Tutorials
CoderdEditor Developer Tools
CodersEditor Online EditorGit Flavoured Markup EditorFree Online JSON FormatterFind My IP Address Details
Tutorials
C ProgrammingJava
Copyright © 2021 CodersEditor.com