[Coco] Printing from Disk Extended Color Basic (via Drivewire)
Arthur Flexser
flexser at fiu.edu
Fri Dec 23 06:11:54 EST 2016
Robert, it is true that Basic resets the value in $6F to zero when screen
output (like printing OK) is required. But I'm reasonably sure (though
it's been a long time) that if you include the DIR command on the same line
as a poke to $6F, the value will remain throughout the execution of the DIR.
In fact, you could extend the command with POKE&H6F,&HFE:DIR:PRINT
FREE(0);" Free grans" to cause the amount of free space left on the disk to
print out below the directory.
Art
On Fri, Dec 23, 2016 at 5:54 AM, Robert Gault <robert.gault at att.net> wrote:
> Arthur Flexser wrote:
>
>> <snip>
>>
>>
>> POKE &H6F,&HFE:DIR wouldn't do the trick? Seems like it ought to if
>> you've
>> redirected the "-2" output channel. (Or is the problem that Basic doesn't
>> insert carriage returns between directory entries?)
>>
>> Art
>>
>>
> Basic resets the value at $6F so you can't POKE it and then enter a
> command like DIR. The value at $6F will have been changed by the ROMs.
> I did find a method for forcing the DIR routine to reset $6F by making the
> routine at $CCC5 "Send directory routine to console out" branch to code
> setting $6F and then returning to the ROM code.
> So coupled with a routine using the $167 vector and testing for a device
> value of -2, DIR output will go to the printer.
>
>
> Robert
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
More information about the Coco
mailing list