[Coco] basic09 - append to file

L. Curtis Boyle curtisboyle at sasktel.net
Tue Jan 11 18:43:11 EST 2011


No, it's a real, as it needs a 4 byte long integer that BASIC09 does not natively support. The syscall uses 2 16 bit registers combined.

L. Curtis Boyle
curtisboyle at sasktel.net



On Jan 11, 2011, at 5:32 PM, Bob Devries wrote:

> Willard,
> I'm fairly sure that the value you use as a parameter for SEEK should be INTEGER, not REAL.
> 
> ----- Original Message ----- From: "Willard Goosey" <goosey at virgo.sdc.org>
> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> Sent: Wednesday, January 12, 2011 9:21 AM
> Subject: Re: [Coco] basic09 - append to file
> 
> 
>> On Tue, Jan 11, 2011 at 04:13:08PM -0500, Aaron Wolfe wrote:
>>> Maybe I'm missing it.. is there an easy way to append to a file (like
>>> a log file) in basic09?  all the print,write,put statements seem to
>>> write at the current file pointer which is 0 on open.  any trick or
>>> simple way to seek to the end?
>> 
>> It looks like the easiest way is to do a SYSCALL with GETSTA SS.SIZ,
>> convert the result to a real, and SEEK to that.
>> 
>> Willard
>> -- 
>> Willard Goosey  goosey at sdc.org
>> Socorro, New Mexico, USA
>> I search my heart and find Cimmeria, land of Darkness and the Night.
>> -- R.E. Howard
>> 
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco 
> 
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco




More information about the Coco mailing list