I use the following program to print the text from Edgar Allan Poe's The Raven from RAM to the TTY output, it loops until system reset.
$0000 loads the hex number #1000 into register R0
$0002 loads the hex number #0001 into register R1
$0004 load value of register R0 into register R3
$0005 output R3 to I/O channel 0 (TTY)
$0006 into R0 add R1
$0007 jump back to address $0004
Here is an overall layout for a complete computer. The CPU is connected to selectable RAM and ROM memory, the current address and word are displayed on 7-seg LEDs. There are 16 separate I/O channels, connected are a keyboard, a TTY display and a LED matrix for simple graphics.
Some additional peripherals can be added later, a data storage device and speaker are planned.
First I'd like to thank people who have contacted me, liked, followed or asked to join the project. I'd like to everyone who has given me advice and helped me learn something new.
After a hiatus, I have finalised the design for my 16-bit CPU. I had to rework it as I moved from Logisim to Logisim Evolution. I'm going to upload the diagrams, starting with the ALU, then the Register File, Instruction decoder then the actual CPU and a working computer based around it. Then I will give an example program, instruction set etc. etc.