83Plus:BCALLs:44F2

From WikiTI
Revision as of 23:47, 17 December 2006 by Brandonw (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Unofficial Name: OffPageJump

BCALL Address: 44F2

Jumps to a specified address on a specified page.

Inputs

  • Push pointer to table entry before calling

Outputs

  • None

Destroys

  • Unknown

Comments

Push the address of a B_CALL table entry before B_JUMPing to this entry point. Such an entry looks like this:

 .DW wAddress
 .DB bPage

Do not B_CALL this entry point, only B_JUMP. Unlike other B_JUMPs, however, this one does return. It could have uses for multipage applications, I guess. TI-Navigator uses it like this.

Example

Jump to ClrLCDFull and end execution (on OS 1.12):

 ld hl,dataPtr
 B_JUMP OffPageJump
dataPtr:
 .dw 5A71h ;these are specific to OS 1.12
 .db 01h