Re: [cc65] cc65 calling conventions

From: MagerValp <MagerValp1cling.gu.se>
Date: 2004-09-03 16:31:07
>>>>> "A" == AygŁn  <Fatih> writes:

A> I think than the function result is returned in AX (not pushed onto
A> the stack) even when not using "fastcall"...

A> Am I right?

Looks like you are:

; ---------------------------------------------------------------
; int __near__ test (void)
; ---------------------------------------------------------------

.segment        "CODE"

.proc   _test: near

.segment        "CODE"

;
; return(257);
;
        ldx     #$01
        txa
;
; }
;
        rts

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Sep 3 16:31:13 2004

This archive was generated by hypermail 2.1.8 : 2004-09-03 16:31:22 CEST