[Coco] 'arc' copy command and Stack Overflow (ERROR #207)
Bill Pierce
ooogalapasooo at aol.com
Tue Jan 27 11:21:41 EST 2015
Allen, yes the original tmode was -echo -pause etc,
the new one is pau=x eko=x etc... much easier, though it breaks things that use it. I keep both on hand in case I need the old.
The C code (or asm) to implement tmode is so simple, I can't figure out why so many programmer's didn't just make it inline to the program. It's just one getstat to get the 32 byte buffer, set the needed byte, then one setstat to write it back. About 12 lines of code in either format. I did the same with pwd/pxd which is also a favorite for people to fork from programs. Thoose get a little more complex, but it's still not a lot of code. All my siiftware has these built in as I have readymade subs that I can add to any source.
Bill Pierce
"Today is a good day... I woke up" - Ritchie Havens
My Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Co-Contributor, Co-Editor for CocoPedia
http://www.cocopedia.com/wiki/index.php/Main_Page
E-Mail: ooogalapasooo at aol.com
-----Original Message-----
From: Allen Huffman <alsplace at pobox.com>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Tue, Jan 27, 2015 10:00 am
Subject: Re: [Coco] 'arc' copy command and Stack Overflow (ERROR #207)
> On Jan 27, 2015, at 1:14 AM, Stephen H. Fischer <SFischer1 at Mindspring.com>
wrote:
>
> My quick glance at "Copy.asm" says disk full is no longer returned like the
original OS-9 "Copy" did.
Surely that has to be an oversight. I will have to try that out and see what
happens. (Man, having CoCoSDC makes things like this so easy to test.)
As to tmode, I noticed that too. Even during my days working for Microware on
OS-9/68K and the OS-9000 platforms, the official suggestion on how you turn off
echo, etc. was to fork "tmode" since the underlying structure might change in
the future between major revisions, but the API of the command line would not.
When I ported MiniBanners from RS-DOS to BASIC09, I forked "tmode" to turn off
echo. When I run it on NitrOS-9, I keep seeing an error message scattered on my
screen:
Syntax error: -echo
Was the original tmode supporting "tmode -echo"? I cannot recall, and have not
gotten to my source code to look what I did, but I know I wrote this before
NitrOS-9 on stock OS-9 L2.
In my CoCo OS-9 assembly and C programs, I did the trick of getting a copy of
the options buffer, modifying the bytes needed, and setting it back. Those still
work -- the irony of those structures remaining the same for a command changing
amuses me.
-- A
--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list