[Coco] wdir command? A FIX

Bill Pierce ooogalapasooo at aol.com
Thu Feb 4 22:59:06 EST 2016

I have posted both the Basic09 and C sources in my Dropbox folder if anyone needs them. To be honest, I don't remember who started this thread... but here's the working code.


The Basic09 version must be loaded into Basic09 and packed, then run from the cmd line. It's best to have runb gfx2, & syscall merged and loaded into memeory. Wdir will not run from within Basic09 because it requires too much memory. It must be run externally.

The C version can be compile with the OS9 C compile as is.
cc1 -o=wdir /dd/lib/cstart.r wdir.c 0l=/dd/lib/clib.l (I think)



Bill Pierce
"Charlie stole the handle, and the train it won't stop going, no way to slow down!" - Ian Anderson - Jethro Tull


My Music from the Tandy/Radio Shack Color Computer 2 & 3
Co-Contributor, Co-Editor for CocoPedia
Global Moderator for TRS-80/Tandy Color Computer Forums

E-Mail: ooogalapasooo at aol.com



-----Original Message-----
From: Robert Gault <robert.gault at att.net>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Thu, Feb 4, 2016 9:45 pm
Subject: Re: [Coco] wdir command? A FIX

Bill Pierce via Coco wrote:> I now have the wdir C code working as well :-)> This give me just the syscalls needed in another program I am working on.>Glad it helps. The root of the problem was in os9.d********************** Device Table Format*                ORG       0V$DRIV         RMB       2                   Device Driver moduleV$STAT       RMB       2                   Device Driver Static storageV$DESC         RMB    2                   Device Descriptor moduleV$FMGR         RMB       2          File Manager moduleV$USRS         RMB       1                   use count      IFGT      Level-1V$DRIVEX       RMB       2                   Device Driver execution addressV$FMGREX       RMB       2                   File Manager execution address                ENDCDEVSIZ         EQU       .The entries in DevTable in wdir missed the last two entries above from LevelII. Keep in mind that Kevin's program does work with the original OS-9 LII so the above table LevelII entries must have been added by NitrOS-9.Robert-- Coco mailing listCoco at maltedmedia.comhttps://pairlist5.pair.net/mailman/listinfo/coco

More information about the Coco mailing list