Write a Simple Computer program that swaps the values in locations 98 and 99.
Click the Check button to check your work.
For your convenience, here is the instruction set:
|Mnemonic||Code (1st word)||Code (2nd word)||Description|
|STORE||160||n||Store the contents of AX in memory location n|
|LOAD||161||n||Load AX with the contents of location n|
|ADDI||44||n||Add n to AX (add immediate)|
|SUBI||45||n||Subtract n from AX (subtract immediate)|
|ADD||50||n||Add the contents of location n to AX|
|SUB||51||n||Subtract the contents of location n from AX|
|MUL||52||n||Multiply the contents AX by the contents of location n|
|DIV||53||n||Divide the contents of AX by the contents of location n|
|JPOS||127||n||Jump to the instruction in location n if AX > 0|
|JZERO||128||n||Jump to the instruction in location n if AX = 0|
|HALT||0||Halt the execution|