Use the menu for detailed help. QUICK HELP:
![]()
Program Example:
(1)Enter the following program. org 0 ;assembly start address db 2 ;defines a byte of decimal value 2 db 4 ;defines a byte of decimal value 4 org 10 ;assembly start address ldac 0 ;load AC with data at location 0 mvac ;move AC data to register R ldac 1 ;load AC with data at location 1 add ;store the sum of AC, R in AC stac 2 ;store AC at location 2 stac ffffh ;send AC to I/O Port end ;stop Also, enter 0 at the memory location text field for the assembly start address of the program. (2)Assemble the program. Note that the results dialog box should appear with assembly success. Otherwise, make sure you've entered the program properly. (3)View the System for Simulation Start a new simulation by using the run menu or type CTRL-N. The start address dialog box should now appear, enter the starting address of where the program is stored. In this case, address 10. Note that this program stores data starting at 0 and stores the assembled program at 10. You may also set different parameters for the simulation. In the View menu you may uncheck Animation for a quick run of the program without animation, choose to only view the ISA registers, or set whether to trace by cycle or instruction. You will now see the RSCPU System simulation for this program. Use your notes to follow the processes, you may pause/stop the system in the run menu or by typing CTRL-S. You may continue as you wish. (4)View Memory After some time, the simulation should end. Hopefully, you've noticed the proper system operations. To verify the program's objective (adding 2 & 4 and storing it in memory), click on View Memory and note how the data was stored in addresses 0, 1, with the result at 2. (5)Trace Results Once the simulation has successfully completed, click on the Trace Results button to view the trace of the program. Notice that a snapshot of the RSCPU's registers are noted for every instruction or cycle of the program, depending on which parameter was chosen in the View menu of the computer system dialog window.