Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Routine mapping?
#1
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:

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)