Tag: excercise

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

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) Code Description 1 LDA BETA Load the value of BETA in Accumulator 2 MUL GAMMA Multiply the value of GAMMA with accumulator and the result will be stored in Accumulator…