-
Notifications
You must be signed in to change notification settings - Fork 0
04. Running a program
Once you have an assebled .bin
file, you can proceed by loading it into RC16's RAM. In order to accomplish this, first of all open the project inside Logisim: you will see the main
tab (tabs are listed on the left). Double click on the RAM you can see in the center of the screen, then right click onto the RAM module in the view that opens and select load image
. Choose the .bin
file that the assembler created. Once done, go back to the main
tab, click on the power
switch (it should become green and the 4-digit display should show 0000
), and finally hit Ctrl-K
. Your program should run and you should be able to see the output on the 4-digit hexadecimal display.
You may also want to run the RC16 CPU at the meximum cock speed supported by Logisim, which is 4.1KHz: you can adjust this setting in the Simulate > Tick Freuency
menu.