My Little Pony Demo

Ponut

New Member
Finally, I can post here!
Yeah I made that. You can read more about what I'm doing on the Jo engine forums.
Lately I'm struggling with SGL PCM. (At least I'm struggling less there than with SBL PCM, which i couldn't get to work at all)
 

XL2

Member
Finally, I can post here!
Yeah I made that. You can read more about what I'm doing on the Jo engine forums.
Lately I'm struggling with SGL PCM. (At least I'm struggling less there than with SBL PCM, which i couldn't get to work at all)
Well, Jo Engine already includes PCM functions using mainly SBL, so you could take a look there.
Rockin B Saturn tutorial also shows how to do it.
 

fafling

Gear Supporter
gcc 9.2 environment by vbt.
Add %COMPILER_DIR%\SH_ELF\bin in the PATH in compile.bat to avoid a missing dll error.
 

Attachments

fafling

Gear Supporter
So to get the border area to display black instead of the back screen color, I had to set the TVMD register at vblank, just like you did when you were setting the screen to hi res. This is what I added in function vblank_requirements of render.c, the value is the same as Jo engine for NTSC but with the BDCLMD bit set to 0 :
Code:
vdp2_TVmode[0] = 32784;
The values that Jo engine put in this register at init set the border to the back screen color (JO_VDP2_TVMD in core.c). But changing those values has no effect on the border color, and I couldn't find something else that modified the TVMD register.
 

XL2

Member
So to get the border area to display black instead of the back screen color, I had to set the TVMD register at vblank, just like you did when you were setting the screen to hi res. This is what I added in function vblank_requirements of render.c, the value is the same as Jo engine for NTSC but with the BDCLMD bit set to 0 :
Code:
vdp2_TVmode[0] = 32784;
The values that Jo engine put in this register at init set the border to the back screen color (JO_VDP2_TVMD in core.c). But changing those values has no effect on the border color, and I couldn't find something else that modified the TVMD register.
Wait, so the tvmd register has to be modified at vblank?
That's a SGL issue I guess?
 

Ponut

New Member
Almost certainly an SGL issue.
Why did they feel the need to write all the registers all the time?
 
Top