Difference between revisions of "84PCSE:RAM:8B22"

From WikiTI
Jump to: navigation, search
(Created page with '8B22 - asm_prgm_size asm_prgm_size == Synopsis == '''Unofficial Name:''' asm_prgm_size '''Memory Address:''' 8…')
(No difference)

Revision as of 16:32, 3 April 2013

Synopsis

Unofficial Name: asm_prgm_size

Memory Address: 8B22

Length: 2 bytes

When an assembly program runs, this stores the size of the program so that the OS knows how much to delete after the program runs. If you're not running from a shell, after copying a stub to scrap RAM, you can use the value in this to delete yourself. Then you can _JForceCmdNoChar without leaking memory. But if you're running from a shell, you're likely to die horribly.