11-02-2014, 05:51 AM
Right now, ZX BASIC already supports variable mapping. If I already have a variable defined at a certain memory address, I can reference it as follows:
It would be nice if ZX BASIC could also support routine mapping. If I already have an assembly routine implemented at a certain memory address, I would like to reference it as follows:
In the meantime, I'm having to use this workaround:
EDIT: Of course routine mapping should also work with both sub-routines and functions, either FASTCALL or not, exactly like any other ZX BASIC routine implemented in asm directly inside the routine body.
Code:
DIM x AS UBYTE AT 64000
It would be nice if ZX BASIC could also support routine mapping. If I already have an assembly routine implemented at a certain memory address, I would like to reference it as follows:
Code:
DECLARE sub FASTCALL doSomething(src as UINTEGER, dst as UINTEGER) AT 64000
In the meantime, I'm having to use this workaround:
Code:
sub FASTCALL doSomething(src as UINTEGER, dst as UINTEGER)
asm
jp 64000
end asm
end sub
EDIT: Of course routine mapping should also work with both sub-routines and functions, either FASTCALL or not, exactly like any other ZX BASIC routine implemented in asm directly inside the routine body.