gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

ASM > Running code from data section

#76525 - syxtem - Wed Mar 22, 2006 11:34 am

Hello,
Is it possible to branch execution to any writeable section?
I'm working on a lisp compiler for gba (it is an university assignment) and I need it for creating new functions in runtime.
Thanks
~syxtem

#76546 - poslundc - Wed Mar 22, 2006 5:10 pm

syxtem wrote:
Hello,
Is it possible to branch execution to any writeable section?


Yes, other than perhaps SRAM and the I/O section. But EWRAM and IWRAM are executable, and I imagine VRAM is as well.

Dan.

#76591 - tepples - Thu Mar 23, 2006 12:25 am

Yes, VRAM is executable, and acNES (Nintendo's NES emulator used by the Classic NES Series and the e-reader) relies on this.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#76605 - tepples - Thu Mar 23, 2006 12:55 am

Yes, VRAM is executable, and acNES (Nintendo's NES emulator used by the Classic NES Series and the e-reader) relies on this.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.