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

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2002-05-15 01:04:36


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!

PS.  sorry for all the traffic lately...

Shawn
 

----------------------------------------------------------------------
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-15 01:05:16 CEST