Re: [cc65] Atari file i/o more info

Date view Thread view Subject view

From: Christian Groessler (cpg_at_aladdin.de)
Date: 2002-05-16 13:31:02


On 05/14/2002 04:04:36 PM MST "Shawn Jefferson" wrote:
>
>Re: append
>
>Took a quick look at the source for implementing append mode.  I
>think we could just add the following and have it working:
>
>/common/_fopen.c:
>
>in amode_to_bmode add this code to the switch statement:
>
>  case 'a':
>    binmode = O_APPEND;
>    break;
>
>
>/atari/open.s:
>
>add/change the filemode handling code:
>
>l2:     cmp     #O_RDWR
>	  bne     l3
>	  lda     #OPNOT|OPNIN
>	  bne     set
>
>l3:     lda     #OPNIN|APPEND
>	  bne     set
>
>I think that is all that is required, isn't it?  I don't know that I
>will be able to build the libraries without Unix... I wonder if one
>of the atari developers can compile it... I'll gladly test it!

I will check it out...

regards,
chris

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-05-16 13:31:01 CEST