sverx
sverx
Sure! Send them over! :heart:
I'm in no way expert on either SG-1000 or SC-3000 so in order to support the SC-3000 I first have to understand if I can just add features to SGlib...
> The first patch to apply is the following on crt0_sg.sm it's mandatory to run game on both machines using only joypad: > > ; *** Init PPI on SC...
https://github.com/sverx/devkitSMS/commit/cf35965f34fb418361b2674e364634e47492700b Done. What's next?
> This is the detection of PPI, in order to use the keyboard on SC-3000. I use this instead the init PPI of the previous message. [...] So, this code...
> Detection is simple. PPI sports some latch so, if you write some value, you can expect to read it. Without PPI, you read $FF everytime. I see some delay...
> No delay is required. This code is a refactoring version of the official Sega detection routine. So the official SEGA detection routine had delays? :thinking: If no delays are...
> No delay. Your code should works but I need to see the generated assembly obviously. Here's the whole generated code, which seems totally fine to me. ``` _SG_detectKeyboard:: ;SGlib.c:362:...
I'm not sure it's a good idea to merge the keyboard data with the joypad data... :thinking: Since we already can read joypad data, can't we just add a separate...
Yes, I think we should keep the two parts separated. SGlib already has its functions to access joypad(s) status: ``` /* functions to read joypad(s) */ unsigned int SG_getKeysStatus (void);...