Code: Select all
If IsValidLabel(MyProc)
Output '! jmp MyProc'
Else
CompilerError
EndIf
I'd love it if it asked a second question - "is it a valid Integer variable? if yes jmp to that address"
Code: Select all
If IsValidLabel(MyProc)
Output '! jmp MyProc'
Else
If IsValidIntegerVariable(MyProc)
Output '! jmp [MyProc]'
Else
CompilerError
EndIf
EndIf

(and yes i know PB already has ways to CALL dyn addresses, but seemingly no JMP?

Thankyou for considering