Z80:Directives:BRANCH: Difference between revisions
From Learn @ Cemetech
Jump to navigationJump to search
Initial automated import |
KermMartian (talk | contribs) |
||
| Line 7: | Line 7: | ||
=== Allowed inputs === | === Allowed inputs === | ||
== Uses == | == Uses == | ||
Revision as of 08:24, 5 February 2016
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
Z80:Directives:BRANCHRULE:branchrule