The neat thing about 1802 OUT instruction is that it increments the X Register.
So, if you make the X register the same as the PC register, not only will it point to the next byte (since the PC increments) but the OUT increments it too and program execution continues on next instruction.
Very easy way to output a constant.
Here's the shortest program to output a value.
E0 Set X = 0 (PC)
AA (value to be output)
30 Jump to begining
From: firstname.lastname@example.org <email@example.com> on behalf of John Kennedy <johntkennedy@...>
Sent: Sunday, September 20, 2020 11:24 PM
To: firstname.lastname@example.org <email@example.com>
Subject: Re: [cosmacelf] Noob question: examine arbitrary memory address? #ELF #Memory
Could someone tell me what the simplest program to a display a value on the 2 hex displays would be?
My experiments are not working, which makes me thing I do have another hardware issue on my hands..