Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!cit-vax!usc-oberon!sdcrdcf!trwrb!scgvaxd!wlbr!wlbreng1!pete From: pete@wlbreng1.UUCP Newsgroups: comp.sys.m6809 Subject: Re: Coco/OS9 questions????? Message-ID: <180@wlbreng1.UUCP> Date: Fri, 13-Mar-87 16:55:15 EST Article-I.D.: wlbreng1.180 Posted: Fri Mar 13 16:55:15 1987 Date-Received: Sun, 15-Mar-87 04:02:26 EST References: <300001@hpfcdq.HP.COM> Reply-To: pete@wlbreng1.UUCP (0000-Pete Lyall) Organization: Eaton Inc. IMSD, Westlake Village, CA Lines: 68 In article <300001@hpfcdq.HP.COM> vodall@hpfcdq.HP.COM (Bill Vodall) writes: > >Ok, all you Coco/OS9 wizards, I've got a couple questions: > >1. Has anybody ported Small-C to OS9 for the Coco? The Radio Shack > C compiler looks great until I try and run it with the ram disk > from an external terminal. It eats too much memory. > I sent that code all off to Steve Odneal (porter of Dyancomp Flex to the COCO, and author of Kansas City Basic, as well as the PRO/SCR hard disk hardware and software) and he got MOST of it going, but even with a public domain Macro assembler I sent him, he still has a LOT of work to do an turning it into a relocatable macro assembler, which a C compiler requires. Overall, you ARE better off with the MW compiler (at least IT exists!). Build a minimal bootfile with no RS-232 stuff (or no CCIO stuff, if using a remote tube), no printer, no pipes - no non-essentials for the edit/compile cycle). Also, the level II coco III will relieve your memory problem (512K is a MUST). >2. Has anybody written the routines to talk to the Radio Shack > Plug 'n Power from OS9? The program pack is nifty but I'd like > to change the settings from OS9 without having to power down the > computer and plug in the pack. I have a primitive little package that talks to the OLD cassette port attached PNP controller.. works great, and I could mail you source if you like. However, 'PAK' software was never written under OS9. I believe that there were some routines written up under RS-DOS assembly language that handle the pak. This might be enough to get you started. Also, there is some unix-based code called X-10 that was posted a while back that supports the RS-232 based 'X-10 Powerhouse Controller'. I bought one of these on a closeout from DAK for $19.95 (;^) a while back. I have yet to complete the port (I work on it occasionally). It looks like the OS9 port will be RELATIVELY painless. >3. Last, for now anyway, is there some way to make the SCFMAN goto a > raw mode? I'm trying to do simple terminal programs but it's slow > and it gags on bad control characters. Re: the RAW mode... sure. a) Use i$read/i$write vice using i$readln/i$writln (BASIC09 get/put instead of input & print). b) Turn off the appropriate path options by getting 2 copies of the path descriptor option section (32 bytes) using the i$getstt call, diddle the appropriate bytes (zero the bytes for QUIT and ABORT to prevent operator interrupts, for instance - see the DEFS files and look for the PD.??? for more detail), then send the diddled version back to the path with an i$setstt. When you're done mucking about, send the virgin copy back to restore the previous state. -- Pete Lyall Usenet: {trwrb, scgvaxd, ihnp4, voder, vortex}!wlbr!pete !wlbreng1!pete !wlpx!pwl Compuserve: 76703,4230 (OS9 SIG Sysop) OS9 (home): (805)-985-0632 (24hr./1200 baud) Phone: (818)-706-5693 (work 9-5 PST) ----------------------------------------------------------------------