System Software – SIC/XE Program to divide BETA by GAMMA and set ALHPA to floating quotient

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 8082 times

Problem Statement

Write a sequence of instructions for SIC/XE to divide BETA by GAMMA, setting ALPHA to the value of the quotient, rounded to the nearest integer. Use register-to-register instructions to make the calculation as efficient as possible.

Solution

Line Number(ac) Code Description
1 LDF BETA  
2 DIVF GAMMA  
3 FIX  
4 STA ALPHA  
5 ALPHA RESW 1  
6 BETA RESW 1  
7 GAMMA RESW 1  

1 Comment

  1. vishal

    i want solution for this:

    Instructions in SIC to arrange 100
    words in Ascending order and store result in the array BETA of 100 words.

    February 7, 2018 - 6:09 pm – Reply

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...