System Software – SIC Program to set ALPHA equal to Product of Beta and Gamma

Published on June 26, 2016 by abundantcode

Filed under Assembly Language

Last modified June 26, 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 3831 times

Problem Statement

Write a sequence of instructions for SIC to set ALPHA equal to the product of BETA and GAMMA. Assume that ALPHA, BETA, and GAMMA are defined as in Fig. 1.3(a).

Solution

Line Number(ac) CodeDescription
1LDA BETALoad the value of BETA in Accumulator
2MUL GAMMAMultiply the value of GAMMA with accumulator and the result will be stored in Accumulator
3STA ALPHAStore the result of Accumulator to ALPHA
4ALPHA RESW 1Reserve 1 word for ALPHA
5BETA RESW 1Reserve 1 word for BETA
6GAMMA RESW 1Reserve 1 word for GAMM

Leave a Comment


x

You might be Interested in these Posts

System Software - SIC program to set 100 elements of array to Zero

Problem Statement Suppose that ALPHA is an array of 100 words, as defined in Fig. 1.5(a). Write a s...

System Software - SIC Program to swap the values of ALPHA and BETA

Problem Statement Write a sequence of instructions for SIC to swap the values of ALPHA and BETA. S...

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