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 ALPHA equal to 4 * BETA – 9

This System Software programs shows the sequence of instructions for SIC/XE to set ALPHA equal to 4 * BETA – 9. The Immediate Addressing mode is used for demonstration.

Write a sequence of instructions for SIC/XE to set ALPHA equal to 4 * BETA – 9. Use immediate addressing for the constants.

Sourcecode

Line NumberCodeDescription
1LDA BETALoad the value of BETA in Accumulator
2LDS #4Load the value 4 to Register S
3MULR S,AMultiply the value of Accumulator with Register S and store the result back to Accumulator
4SUB #9Subtract the value 9 from the contents of accumulator
5STA ALPHAStore the value of accumulator to ALPHA
6ALPHA RESW 1Reserve 1 word for ALPHA
← SIC Program to set ALPHA equal to Product of Beta and GammaSIC/XE Program to swap the ALPHA and BETA →
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