jpage8580/GTUltra

sidaddress initialized wrong

drmortalwombat opened this issue · 5 comments

in gt2stereo.c

unsigned sidaddress = 0xd400d420;

should be

unsigned sidaddress = 0xd420d400;

so that the first SID is at address 0xd400 and the second at 0xd420

see greloc.c:

int sidAddr1 = sidaddress & 0xffff;
int sidAddr2 = (sidaddress >> 16) & 0xffff;

this could possibly be why 2SID tunes export incorrectly for me then

You can only overwrite the 2nd sid, not the first, which is stuck at 0xd420