mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 16:29:21 +00:00
cd49c5f88d
cx16: callfar() with constant address generates shorter asm
15 lines
286 B
Lua
15 lines
286 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub start() {
|
|
uword @shared address = $C09F
|
|
ubyte @shared bank = 10
|
|
uword @shared argument = $1234
|
|
|
|
void callfar(bank, address, argument)
|
|
void callfar(10, $C09F, argument)
|
|
}
|
|
}
|