Write a sequence of instructions for SIC to set ALPHA equal to the integer portion of BETA / GAMMA. Assume that ALPHA and BETA are defined as in Fig. 1.3(a).
|1||LDA BETA||Load the value of BETA to accumulator|
|2||DIV GAMMA||Divide the value of accumulator by GAMMA|
|3||STA ALPHA||Store the value of accumulator to ALPHA|
|4||ALPHA RESW 1||Reserve 1 word for ALPHA|
|5||BETA RESW 1||Reserve 1 word for BETA|
|6||GAMMA RESW 1||Reserve 1 word for GAMMA|