Difference between revisions of "83Plus:BCALLs:44F2"

From WikiTI
Jump to: navigation, search
m (Couple more notes)
m (Example typo)
Line 27: Line 27:
  
 
   ld hl,dataPtr
 
   ld hl,dataPtr
 +
  push hl
 
   B_JUMP OffPageJump
 
   B_JUMP OffPageJump
 
  dataPtr:
 
  dataPtr:
 
   .dw 5A71h ;these are specific to OS 1.12
 
   .dw 5A71h ;these are specific to OS 1.12
 
   .db 01h
 
   .db 01h

Revision as of 16:12, 18 December 2006

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. Push a return address before the below code if you want to regain control. TI-Navigator uses it like this.

Example

Jump to ClrLCDFull and end execution (on OS 1.12 from a RAM program):

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