Difference between revisions of "Z80:Directives:BRANCH"
From Learn @ Cemetech
Jump to navigationJump to searchKermMartian (talk | contribs) |
KermMartian (talk | contribs) m |
||
Line 42: | Line 42: | ||
== See Also == | == See Also == | ||
− | [[Z80:Directives:BRANCHRULE | + | [[Z80:Directives:BRANCHRULE|branchrule]] |
{{lowercase}} | {{lowercase}} |
Latest revision as of 08:21, 6 February 2016
Adds a branch table entry and label (for TI applications). The branch table should follow the application header.
Contents
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