[stella] Re: Programming tricks guide

Subject: [stella] Re: Programming tricks guide
From: Dennis Debro <ddebro@xxxxxxxxxxxxx>
Date: Thu, 6 Feb 2003 10:56:42 -0500
How about using the BRK vector? I was listening to Joe Decuir's keynote speech from CGE2K1 this morning and he mentioned using the BRK to avoid using JSR all over the place. It would shave off 3 bytes of ROM!

So given a subroutine that's called all over you could set the address in the brk vector, remove the RTS and change it to RTI. Then replace all JSR to this routine with BRK.

Would this work? Would you even need a RTI?

Take care,

Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/

Current Thread