84PCSE:RAM:8B22

From WikiTI
Jump to: navigation, search

Synopsis

Unofficial Name: asm_prgm_size

Memory Address: 8B22h

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.