CompuServe Thread

#Asm called from AmBasic

3 messages in this thread
#96427From: Mike BerroDec 3, 1987 3:01 PM
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
#96733From: Ed SilvaDec 5, 1987 4:45 AM
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
#97085From: Mike BerroDec 7, 1987 12:11 AM
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