kieranhj / pop-beeb

Prince of Persia port to BBC Master
45 stars 2 forks source link

Untangle some of the functions located in wrong modules #43

Closed kieranhj closed 6 years ago

kieranhj commented 6 years ago

Because of memory constraints in the original Apple II version, some functions are located in different modules from where Jordan intended. I would rather co-locate the routines together if possible as this can reduce the DLL stub call overhead.

Also leads to some strange multiple indirections and confusing function names (FUNCTION, function, _function) across different modules.

kieranhj commented 6 years ago

Moved a lot of unnecessary functions from grafix.asm. Need to refactor to put keyboard + joystick plus music fns in separate modules.

kieranhj commented 6 years ago

Everything is in the right place now, or thereabouts. Will do a tidy up pass on unused code etc. before ship.