User Tools

Site Tools


development:csdk:2.0:codebanks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
development:csdk:2.0:codebanks [2024/11/22 10:10] clydedevelopment:csdk:2.0:codebanks [2024/11/22 10:16] (current) clyde
Line 47: Line 47:
 } }
 </code> </code>
 +
 +===== A warning =====
 +
 +You really don't want to call ''change_rom_bank'' or ''pop_rom_bank'' directly from code that lives in an alternate bank, since it'll disappear from under you as soon as either of those functions return. You can set up wrapper functions, also know as "trampolines" that live in the default code bank. Or just structure your code so that all your bank changes are called from the default code bank without explicitly setting up wrappers.
development/csdk/2.0/codebanks.txt · Last modified: 2024/11/22 10:16 by clyde