[A89] Re: more questions (return value)
[Prev][Next][Index][Thread]
[A89] Re: more questions (return value)
it is checking to see if a0 is pointing to the right place and jumping to a
rom call at wherever a0 is pointed to. an easy way to return a value is to
put it on the clipboard. there's source for this in the archive.
>
> 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?
>
>
References: