[cc65] Dodgy long constant passing?

From: dominic beesley <dominic1brahms.demon.co.uk>
Date: 2005-05-04 05:27:42
Hi,

I've been having problem tracking down a strange error that appears 
occasionally.

I seem to have narrowed it down to the following bit of code generation:

;
; fsz = lseek(fd, 0, SEEK_END);
;
        ldy     #$01
        jsr     ldaxysp
        jsr     pushax
        ldx     #$00
        lda     #$00
        jsr     pushax
        ldx     #$00
        lda     #$01    <------------wrong???!??!
        jsr     pushax
        ldy     #$06
        jsr     _lseek
        jsr     axlong
        ldy     #$02
        jsr     steaxysp


lseek is defined as:

off_t __fastcall__ lseek(int fd, off_t offset, int whence);

I'm using v.2.10.1

Cheers

Dom
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed May 4 04:13:15 2005

This archive was generated by hypermail 2.1.8 : 2005-05-04 04:13:17 CEST