Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing strings to assembler
#1
Hi,

I have this code:

Code:
    .....    
PRINT "Please enter text:"
LET a$= INPUT(8)
SAVEFILE(a$)
.....

SUB fastcall SAVEFILE(name as String)
ASM
.....
END ASM
END SUB

I need to get the string value in the ASM function, and I was expecting having a pointer to it as the second value in stack (so POP HL, POP DE, PUSH HL will keep the return adress in stack and DE as pointer to the string), but it doesn't seem to work like that, How could I get the string parameter from assembler?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)