Branch
Adds a branch table entry and label (for TI applications). The branch table should follow the application header.
Syntax
.branch label
Allowed inputs
Uses
.binarymode ti8xapp
.defpage 0, 16*1024, $4000
.defpage 1, 16*1024, $4000
.page 0 ; Start page 0
.block 128 ; Advance 128 bytes for header.
jp Run ; Jump past the branch table
.branch OffPageCall ; Add a branch table item
Run
bcall(_OffPageCall) ; Call the off-page function
; (Note the _underscore!)
bjump(_JForceCmdNoChar) ; Exit
.page 1
OffPageCall
; Do something interesting
ret
See Also
page revision: 0, last edited: 06 Jun 2014 17:49