Quote from: Daddy Poi's Oily Gorillas on 11, January, 2021, 10:30:25 PM
There are still some functions that push/pop r4... such as from 08016E0C in GS2. (Relating to Save Game mechanics)
And also same for the audio section. (081C0000) ... We know Camelot uses the Sappy Engine... The code here looks kinda weird at times, though.... so it could have been compiled separately. (Kinda like how DLLs are.)
Yeah - thanks for bringing that up. The audio code doesn't exhibit any of the Camelot patterns, so I suspect you're right about it being built separately. Some of it could be handwritten assembly, but I don't think all of it is. I understand the sound library is third-party and shared with other games, so I wonder if it might have been provided as pre-built libraries instead of source code... I haven't been into the save/load code yet, so can't speak to that part.