[Coco] dload subroutines

Little John (GIMEchip.com) sales at gimechip.com
Wed Jul 14 15:51:17 EDT 2010


That's what I get for stopping reading at page 13 - 13 is an unlucky number 
:-)
I was just looking at page 13 of the color basic unravelled - it made it 
seem as if it were a standard I/O function using CHRINP or console in.
alas, it wasn't....

----- Original Message ----- 
From: "Darren A" <mechacoco at gmail.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Wednesday, July 14, 2010 2:12 PM
Subject: Re: [Coco] dload subroutines


> On 7/14/10, Little John (GIMEchip.com) wrote:
>
>> You could use the OPEN command to open a #-3 file which is DLOAD. Then 
>> use
>> the standard file access commands to talk to it like LINE INPUT #-2,A$ 
>> etc.
>> Then after your done CLOSE #-3. I don't know how reliable this is and 
>> DLOAD
>> only exists on the CoCo 1 and 2 - it was removed from the CoCo 3 - 
>> executing
>> DLOAD on the coco3 performs a warmstart (or coldstart if you store a 0 at
>> address 113).
>>
>> ----- Original Message -----
>> From: "Jorge Renato Machin Ibarra"
>>>
>>> Hi!
>>>
>>> Do you know of any parameters that need to be set to call ROM's
>>> subroutines 36284 (DLOAD) and 40962 and which data is returned?
>>>
>
> ---
>
> The OPEN statement does not accept -3 as a device number.  It will
> issue a ?DN ERROR.
>
> The subroutine at 36284 ($8DBC) is available on all CoCos with
> Extended Basic, including the CoCo 3. It attempts to read a single
> byte from the serial port.  If successful, the byte is returned in A
> and the Z flag will be set. There are two variables in low RAM that
> affect its operation:
>
> DLBAUD  $00E6  (230)
> Contains the delay value for the bit rate (176 = 300 bps;  44 = 1200 bps).
>
> TIMOUT  $00E7  (231)
> Indicates how long to wait for the byte before timing out (in
> increments of roughly 2 seconds).
>
> On the CoCo 3, these locations have been reused as HRMODE and HRWIDTH.
> You will need to save, setup and restore these locations around calls
> to $8DBC.
>
> Darren
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.830 / Virus Database: 271.1.1/3004 - Release Date: 07/14/10 
01:36:00




More information about the Coco mailing list