[A89] more questions (return value)


[Prev][Next][Index][Thread]

[A89] more questions (return value)




thanks to all of you who answered my questions. Now finally i got my 
program running!!
Now I want to return a list, instead of just display it on the 
screen. I made the same version of my program in C, with a return 
value, and this is the code when I disassemble it:

   /* Support for RETURN_VALUE */
   move.l (%sp)+,%a0
   cmpi.w #0x21EE,(%a0)
   bne.s __A2
   addq.l #2,%a0
__A2:
   jmp (%a0,4)
   .xdef __save__sp__
   .even
__save__sp__:
   .long 0
   .even

can someone explain me this? I don't like to do things just becouse.
regards,
ra.-
PS: is there any place where I can find some info on returning values 
from an asm program?



Follow-Ups: