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 multiply two arrays

This System Software program demonstrates a set of instructions in SIC/CE to multiple two arrays and stored in the result GAMMA.

Assume that ALPHA and BETA are the two arrays of 100 words. Another array of GAMMA elements are obtained by multiplying the corresponding ALPHA element by 4 and adding the corresponding BETA elements.

Source Code

Line NumberCodeComments
1LDS #3
2LDT #300
3LDX #0
4ADDLOOP LDA ALPHA, X
5MUL #4
6ADD BETA, X
7STA GAMMA, X
8ADDR S, X
9COMPR X, T
10JLT ADDLOOP
11ALPHA RESW 100
12BETA RESW 100
13GAMMA RESW 100
← SIC/XE Program to arrange an array of 100 words in ascending orderSIC/XE Program to find the maximum element in the array and store result in MAX →
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