To test my circuit on the board, I slowed down the circuit using a slowclock that runs 32 million times slower than the clock.
Testing using the board:
The rightmost button is 'reset.'
I also speeded up the slow clock by changing the assigned bits since the program was longer.
Testing Displaying the program on the board:
Load "00000000" into the LR
shift the LR right by one position, fill from the left with a '0'
shift the LR left by one position, fill from the right with a '0'
add 1 to the LR
subtract 1 from the LR
invert all of the bits of the LR
rotate the LR right by one position (rightmost bit becomes leftmost bit)
rotate the LR left by one position (leftmost bit becomes rightmost bit)
set LR to "10100101"
shift the LR right by two positions, fill from the left with "00"
shift the LR left by two positions, fill from the right with "00"
jump to when PC = "01011"
jump to when PC = "00100"
take 2’s complement of the LR
rotate the LR right by 4 positions
jump to when PC = "01111"
In the process under the architecture of my lightsPlus, I added case statements to execute the proper action given the instruction table above.
The test display is the same as above.