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 find the maximum element in the array and store result in MAX

This System Software program provides a sequence of instructions in SIC/XE Program to find the maximum element in the array and store result in MAX.

Assume that ALPHA is an array of 100 words. Write a sequence of instructions for SIC/XE to find the maximum element in the array and store results in MAX.

Source Code

Line NumberCodeComment
1LDS #3
2LDT #300
3LDX #0
4CLOOP LDA ALPHA, X
5COMP MAX
6JLT NOCH
7STA MAX
8NOCH ADDR S, X
9COMPR X, T
10JLT CLOOP
11ALPHA RESW 100
12MAX WORD -32768
← SIC/XE Program to multiply two arraysSIC/XE Program to write a subroutine for SIC that writes record on to device 05 →
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