polpo wrote: Mon Jul 08, 2024 8:13 pm
I'm the creator of PicoGUS and this is blowing my mind. It's crazy to see the card I designed in an Atari and working! Awesome that you ported pgusinit as well. I just released firmware v2.0.0 so it does change that interface a bit, BTW.
Thanks for the heads up! I grabbed latest and merged with the Atari bits, I love the quick fw mode change on v2.0.0
I've only tested OPL and MPU401 so far and both of these seem fine.
USB Joystick and mouse support will be quite interesting to test too and I
think it should be fairly easy to make a TSR for injecting these into TOS bios. The same TSR would likely work for cards with real Gameport too (or serialport, in case of mouse, but who has an old PC serial mouse nowadays

)
In terms of pgusinit and main card control, it's not 100% on Atari yet but can be used.
With the new v2.0.0, pgusinit sometimes have issues receiving data correctly on the picogus control port.
It's not a big issue since your settings are saved on the card, and the emulated device seem unaffected, thus it's a low prio that I'll investigate further.
Specifically; when the card is in GUS or MPU401 mode then pgusinit behaves as expected.
But when in SB or CMS mode it'll sometimes receive wrong response data over the picogus control port;
the displayed firmware string will have some bad letters here and there, and sometimes the wrong data is important for pgusinit so it causes the program to say that the card is not detected -- It'll usually work running the program again, or again.
Since it behaves differently in the different firmware modes I'm hoping I can isolate what specifically might be affecting comms over the control port; perhaps the timings in my setup is just generally on the edge and different cpu or irq utilisation on the pico pushes it over the edge.