# SIC/XE Program to divide BETA by GAMMA, setting ALPHA to the value of the quotient

This System Software program demonstrates set of instructions for SIC/XE to divide BETA by GAMMA, setting ALPHA to the value of the quotient, rounded to the nearest integer using the register-to-register instructions.

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

### Source Code

Line Number | 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 |