Re: Ittiara, a 65C02 handheld
Posted: Sat Apr 21, 2018 4:51 am
From here: Subject: game machines because the subject of that thread really doesn't cover this, in my opinion.
It wasn't transmitting for some reason, despite using code that worked just fine in EWOZ. I'd copy-pasted it from my dev kit's* library, because Tali Forth 2 is written for Ophis, and all my code is written for SB-ASM.
I eventually ascertained that the transmit FIFO was filing up, and since nothing was appearing on the display, it must not have been transmitting for some reason. I do not know why.
In the time since I posted the message you were replying to, I have gotten it to work somewhat, in that it displays things now. However, it is not exactly functional. It spews stack underflow errors while it's printing the startup message, and when I hit enter on "1 2 +". The . word also prints nothing, even after I push a number before I run it.
I suspect that this is because of the way I did get it working. I did that by converting the Tali assembly files over to SB-ASM syntax, and including those in a copy of my ROM image project. I think I made a mistake in the conversion, and changed the meaning of the code somewhere. I was going to try and diff the hex files, to try and determine what I did wrong. I have not yet figured out how.
I am also rapidly discovering that working with a display that wraps around to the top instead of scrolling is awful. I will have to correct this sooner or later. Preferably sooner.
*I wrote most of it myself, although the DUART initialization code is adapted from yours; converted to linear initialisation, and removing certain parts I don't want yet, such as the 100Hz IRQ.
BigDumbDinosaur wrote:
What exactly is the DUART doing...or not doing?
I eventually ascertained that the transmit FIFO was filing up, and since nothing was appearing on the display, it must not have been transmitting for some reason. I do not know why.
In the time since I posted the message you were replying to, I have gotten it to work somewhat, in that it displays things now. However, it is not exactly functional. It spews stack underflow errors while it's printing the startup message, and when I hit enter on "1 2 +". The . word also prints nothing, even after I push a number before I run it.
I suspect that this is because of the way I did get it working. I did that by converting the Tali assembly files over to SB-ASM syntax, and including those in a copy of my ROM image project. I think I made a mistake in the conversion, and changed the meaning of the code somewhere. I was going to try and diff the hex files, to try and determine what I did wrong. I have not yet figured out how.
I am also rapidly discovering that working with a display that wraps around to the top instead of scrolling is awful. I will have to correct this sooner or later. Preferably sooner.
*I wrote most of it myself, although the DUART initialization code is adapted from yours; converted to linear initialisation, and removing certain parts I don't want yet, such as the 100Hz IRQ.