83Plus:BCALLs:4E7C

From WikiTI
Revision as of 21:43, 27 March 2005 by Dan Englender (Talk | contribs)

Jump to: navigation, search

Synopsis

Official Name: ExecutePrgm

BCALL Address: 4E7C

Executes an asm program by name.

Inputs

  • OP1: Name of the nostub asm program you want to run

Outputs

None

Destroys

All (at least the asm program can destroy them)

Comments

This B_CALL executes an asm program the same way running the program using asm( would. This means that you can only run programs you could run from the homescreen. It also means that the amount of available memory must be at least as large as the size of the program to execute, because it will copy the program to 9D95h. Shells like ion or mirageos move the program to 9D95h, which means that they can execute larger programs, because they don't need the extra ram to be available.

Example

ld  hl, programToExecute
rst rMOV9TOOP1
B_CALL ExecutePrgm

Credits and Contributions

  • Michael Vincet: For telling others about this B_CALL.