I have written a subroutine in assembly language that I want to call from
Amigabasic. How do I do that?
If I just input the routine as a string variable, or turn it into a bunch of
DATA statements, how do I then relocate it? As perhaps you can tell, I am
confused. Thanx! —Mike
Mike,I dont know if you are passing arguments to this sub,but you can
use LoadSeg() ( a DOS function) that will load that particular
piece of executable code into memory, after you do that you will
need to get an address of that function using that VARPTR basic command
if you give me some more time i will post a * short * AMigaBASIC prog
that will show how to do this trick…
Ed Silva
I'd very much appreciate it. I don't need to pass any values to the routine,
but I'd like the routine to pass back eight ASCII characters. It can either
pass back the address to the string of eight, or pass them back directly as
values, or whatever. —Mike