On Sun, 2025-03-23 at 22:14 -0700, Bill Shen wrote:
> I, too, am interested in the process of adding RP2350 to RomWBW. VGARC is also a port-
> mapped video display, but when I designed it I had no idea whether it can even work with
> RomWBW. Wayne Warthen has done a great job integrating VGARC into RomWBW. I'm grateful
> for what Wayne has done, but now I'm curious about how a new port-mapped video hardware
> is integrated into RomWBW since I'm thinking of another design.
> Bill
>
Hi Bill,
I've been looking at VGARC to find out what I need to do, so I don't think there will be
much on the Z80 side of things in my work that will new to you.
What is different is the use of the RP2350 ARM processors and PIO state machines to
i) Generate video
ii) Provide PS/2 keyboard interface
iii) Act as I/O ports on the Z80 bus
I will be writing those things up when it's all working.
PROGRESS UPDATE:
I spent a frustratingly long time yesterday implementing a "reverse scroll" function as
needed by the VDA interface. Previously my code only had a "forward scroll" as used for
scrolling the screen when doing a line feed when the cursor is on the bottom line of the
display.
The problem was caused by a line number variable becoming negative when scrolling
backwards. I had forgotten that using the "%" operator on negative numbers produces a
negative result, add to that the the result was being put into an unsigned variable, and
maybe a comparison or two between signed and unsigned variables, and you can see why I got
some very strange behaviour which took several hours to firstly understand and then to
fix.
Anyway that is working now, so with all the required functionality implemented on the
RP2380 side I'll be starting on the actual HBIOS code today.
PeterO