z80:Directives:BRANCH
From Learn @ Cemetech
Jump to navigationJump to searchAdds 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