tomm / fab-agon-emulator

Agon Light, Agon Light 2, Agon Console8 Emulator for Linux, Windows, any system with libSDL
GNU General Public License v3.0
82 stars 19 forks source link

VGADirectController #36

Closed S0urceror closed 6 months ago

S0urceror commented 8 months ago

Do you plan to support the VGADirectController? Would love to use the emulator during development of ElectronHAL/OS. I use VGADirectController to implement the virtual TMS9918 videochip in HAL.

tomm commented 8 months ago

I didn't know it existed, because it was removed from vdp-gl. I'd like to get all agon firmwares running on the emulator, so will definitely look into adding VGADirectController to userspace-vdp-gl

tomm commented 8 months ago

I just pushed VGADirectController support to main. The fabgl example works with some modifications. Most notably the vTaskNotifyGiveFromISR function used to signal vsync isn't implemented. We could look into implementing it, or just #ifdef USERSPACE in your firmware code to do something else that makes sense in the emulated context.

S0urceror commented 8 months ago

Thx, I'm busy trying to get ElectronHAL/OS running on the emulator. I'll report back here.

S0urceror commented 8 months ago

Ok, got some success running ElectronOS:

image

For this I had to do a couple of changes and fixes to the agon and cpu emulator. I made these changes on a separate electron branch which I will commit soon and issue a pull-request.