Re: C source to access DOS disks under CP/M
- From: Richard Brady <rrllbrrady@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 06:51:12 GMT
Anonymous Guy entertained us with this wisdom:
On 2005-07-23 Tom Anderson said:
> I found this in a zip file named cc04.zip. I don't recall where > I got it. I attempted to compile it under Aztec C 3.2 for CPM/86, > and got an undefined symbol error. The Aztec linker failed to > generate a CMD file. I then tried DR-C. The source compiled into > an OBJ file. Link86 generated a CMD file but also undefined symbol > messages. The CMD file will execute under CP/M-86, but fails to > access the disk drives. > > I am no programmer, but maybe someone who is would like to look > at this C source, and see if they can get it to run properly. > > Here it is: RDMSDOS.C > > /* > This program reads/writes MS-DOS formatted disks, using the CPM > bios routines. The data is converted to/from C (non-ascii) files. > The code is written so that it can be compiled with Small-C, but > uses K&R standard I/O whenever possible. ^^^^^^^ ^^^^^^^^^^^^ There's your first clue, son. Looks like you might have used the wrong C compilers.
> Author: Bob Alverson > Cincinnati, OH 45231 > 1.1 9 DEC 83 Add ability to read all four IBM formats
In this case, "all four IBM formats" means:
5.25-inch SS/DD, 8 sectors/track 5.25-inch SS/DD, 9 sectors/track 5.25-inch DS/DD, 8 sectors/track 5.25-inch DS/DD, 9 sectors/track
Still, the program could definitely be useful under CP/M-86, if it could be made to compile properly.
Steve Dubrovich? Richard Brady? John Elliot? Anyone...???
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
A cursory glance suggests the getnam function is ill-formed. It's evaluated as a logical in the first while statement in main() yet it returns a pointer. This may work under some compilers but may not work in others.
I reserve the right to be wrong. I am not a C programmer. I consider C a disease. But I've been known to make an occasionaly c program work.
The other Richard Mr. A. Guy: let sleeping dogs lie :-) .
- Follow-Ups:
- Re: C source to access DOS disks under CP/M
- From: Fred J. Scipione
- Re: C source to access DOS disks under CP/M
- From: Anonymous Guy
- Re: C source to access DOS disks under CP/M
- References:
- C source to access DOS disks under CP/M
- From: Tom Anderson
- Re: C source to access DOS disks under CP/M
- From: Anonymous Guy
- C source to access DOS disks under CP/M
- Prev by Date: Re: C source to access DOS disks under CP/M
- Next by Date: Re: C source to access DOS disks under CP/M
- Previous by thread: Re: C source to access DOS disks under CP/M
- Next by thread: Re: C source to access DOS disks under CP/M
- Index(es):
Relevant Pages
|