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

## Leave a Comment