home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-02-12 | 37.5 KB | 1,027 lines |
- ************
- Topic 10 Sun Jan 17, 1993
- E.RAFANAN (Forwarded)
- Sub: Programming in C
-
- Any tips, tricks, etc. for programming in C using Power C
- 58 message(s) total.
- ************
- ------------
- Category 5, Topic 10
- Message 1 Sun Jan 17, 1993
- E.RAFANAN (Forwarded)
-
- Anybody have any experience using Power C?
-
- I've been playing around with it for awhile now, and it seems like a pretty
- good package, but there are a few shortcomings to it, such as:
-
- The 'peek' function seems to have a bug in it - it corrupts certain variables
- when it is called.
-
- The shell doesn't like RAMDOS - no matter where you put the interface page, it
- eventually locks up on you.
-
- The disk directory functions don't like the 1581. Also, the 'opendir' function
- wants to call a drive by 'unit' instead of 'device' number.
-
- And there is hardly any info on ow to write more functions in machine
- language for use by Power C.
-
- Power C is still a pretty good package all-in-all - especially when their
- isn't much more to choose from! :D
-
- Does anybody have any more info, source, etc. on using Power C? I've already
- got most everything on Genie. I would gotten the stuff on QLink, but I
- cancelled my account.... :(
-
- Thanks in advance! Eric Rafanan
- ------------
- Category 5, Topic 10
- Message 2 Tue Jan 19, 1993
- R.KNOP1 [Rob Knop] (Forwarded)
-
- Eric-
-
- I've used Power C 128 a little. It worked fine with my 1581, though I didn't
- try using the directory functions.
-
- Are you using a 128 or a 64?
-
- Re: writing ML functions, there were a few articles in the Transactor that
- discussed doing this with Power C 64. Doing it with Power C 128 is basically
- the same, though some of the memory locations are different. I did some work
- on figuring this out; probably ought to write it up :)
-
- There are (at least) two relevant Transactors. I wasn't very neat in taking
- notes on where the articles were :), but I have dug this up:
-
- Volume 8, Issue 5, Page 36
-
- I'll try to figure out what the other article I found was.
-
- I agree that Power C is a nice package. There _is_ actually another C
- compiler for the 128 - Super C, from Abacus. Not sure which one produces
- better code, is faster, etc., but from what I've seen (I've got 'em both, but
- haven't done a whole heck of a lot of C on my 128), I prefer Power C. For one,
- it lets you create standalone applications. Also, I like the way it memory
- maps better, and (because of Transactor articles and easier-to-hack modules)
- I've made better progress in figuring out a good way to write ML modules for C
- programs!
-
-
- ANYBODY: Is there an index of Transactor articles out there anywhere? In any
- database format? You know, with Keywords, titles, page numbers, and the like?
- That'd be useful as heck!
-
- -Rob
- ------------
- Category 5, Topic 10
- Message 3 Tue Jan 19, 1993
- CBM-ED [e.g.bell] (Forwarded)
-
- That is on my to-do list, Rob, though I am still in need of Volume 4 issues 4-
- 6 for my own collection. (Don't have anything prior to Vol 4 in case you got
- that impression). There was a Bits and Pieces book that contained all of them
- up to a point.
-
- A person *could* type up a list of the article, bits, etc. and use my indexer
- program to cross-reference the stuff.
- ------------
- Category 5, Topic 10
- Message 4 Wed Jan 20, 1993
- HOWIE-CBM (Forwarded)
-
- Eric,
-
- I believe that Ben Pedersen(sp?) either amassed or wrote or both tons of
- Library files for Power C to do lots of things, including graphics.
-
- I have never used any of this, so all my info comes from reading
- postings about it.
-
- I am pretty sure that I saw where he uses it with 1581 drives as well
- as a REU.
-
- I am not sure if we have all these files here on GEnie. If not, I can
- try to get these.
-
- Rob,
-
- I believe that an index of Transactor articles already exists. I will
- inquire to find out for sure.
-
- Howie
- ------------
- Category 5, Topic 10
- Message 5 Thu Jan 21, 1993
- F.CANANZI (Forwarded)
-
- Speaking of Power C 128. Anyone know where to get this version. I have the 64
- version .. it's the same really .. just that the 128 version is compiled with
- the 128 version. At least that is what i'm told.
-
- ------------
- Category 5, Topic 10
- Message 6 Fri Jan 22, 1993
- CBM-MARK (Forwarded)
-
- Power C is no longer marketed, you'll have to try rounding up a used copy.
-
- ~~Mark~~
- ------------
- Category 5, Topic 10
- Message 7 Fri Jan 22, 1993
- C.OGLE2 [breadstick] (Forwarded)
-
- Hmmm.... Power C I don't know about, but Briwall is still selling "Super C"
- 64 and 128 for $49. Don't know if there's too much difference between that and
- Power, though...
- ------------
- Category 5, Topic 10
- Message 8 Fri Jan 22, 1993
- E.RAFANAN (Forwarded)
-
- Thanks for all the iinfo guys!
-
- As far as writing ML functions, there's an assembler for Power C in the libs.
- You might be able to figure out the filename.o format from seeing how they're
- made. :D Actually, I don't know how informative it really is since I haven't
- had a chance to look through it yet.
-
- I saw some stuff on Qlink but I don't know how much of that applies to Power
- C.
-
- Anyway, thanks for all the info again! Can't wait to hear more. Thanks!
- ------------
- Category 5, Topic 10
- Message 9 Sat Jan 23, 1993
- HOWIE-CBM (Forwarded)
-
- Rob,
-
- I checked with Malcolm O'Brien to see if he knew if any index of
- Transactor articles existed.
-
- He said this was one of the things they had intended to do,
- but never got around to.
-
- So, as far as I know there isn't a complete index available at
- this time.
-
- Howie
- ------------
- Category 5, Topic 10
- Message 10 Sat Jan 23, 1993
- F.CANANZI (Forwarded)
-
- Howie... Malcolm is a sysop on Compuserve . It is my understanding that
- Compuserve has a large section of Transactor material on line .... Think we
- could get that material and add it here ?
-
- ------------
- Category 5, Topic 10
- Message 11 Sun Jan 24, 1993
- R.KNOP1 [Rob Knop] (Forwarded)
-
- I've gone through the Tables of Contentesisesis of the Transactors that I have
- (was challenging when the bulb gave out on the little 30x microscope I use to
- read the microfiche editions), and this is what I've come up with for article
- related to Power C
-
- Vol Iss Page Title (probably paraphrased)
- ---------------------------------------------
- 7 5 34 A Tale of Two C's [comparison of Power C and Super C]
- 8 5 36 The Link Between C and Assembly [MOST excellent article!]
- 8 5 42 Maintinaing the Power C Library
- 9 3 56 Serial I/O in Power C
- 9 4 26 The 64 Power C Shell [This one isn't in Tab. of Contents!]
- 9 5 34 Implmenting a RAMdisk [for Power C 64]
- 9 5 50 C Problems, Tips, & Observations
- 9 5 68 A _glob_ function for Power C
-
- The 8(5):36 article is the one which is most relevant to writing assembly
- functions for use with C. The article is written for Power C 64, but the
- structure of Power C 128 linker files is the same as those for Power C 64.
- What is different is the memory map; locations of things like argument storage
- and system variables, zero page usage, and such differ between Power C 64 and
- Power C 128. I've figured some of it out from using the C128 monitor to
- dissassemble and hex dump both Power C 128 linker library functions as well as
- short little compiled programs that I've written. However, it's been a few
- months, and I would hesitate to write here anything from my haphazard notes
- that I probably don't understand any more. I will write more if I figure it
- out well enough to stake at least a little reputation on it :)
-
- -Rob
- ------------
- Category 5, Topic 10
- Message 12 Sun Jan 24, 1993
- CBM-ED [e.g.bell] (Forwarded)
-
- You know, for those of us who have most of the Transactors, it might be an
- interesting project to come up with a format for an index and then each do one
- up within that format. We could index it by topic at first, then perhaps by
- keyword later. I don't know what is available on other platforms, but my
- Indexer program does a creditable job of indexing things based on a
- word/phrase list you supply, and it is quite fast. It would make a nice
- reference for those who need information, even when they do not have the T.
- Make it easier on those w/the T to answer their questions when they can refer
- to a specific vol/issue/page #/article, etc. More work.... just a thought tho
-
- BTW, when I said 'each do one up w/in that format', I meant each do, say, 1
- volume. Since there are only 36 magazines really involved (from my
- standpoint..... volumes 4-9) it would be a project, but do-able.
-
- The TOC would be easy at first, the bits and letters would have to be done
- individually for page number, as would the TransBloopurz, but dissecting the
- job like this certainly makes it seem smaller.
- ------------
- Category 5, Topic 10
- Message 13 Sun Jan 24, 1993
- C128.JBEE (Forwarded)
-
- I doubt I would make any files from the Transactor live unless I had legal
- proof the files were PD or freely distributable.
- ------------
- Category 5, Topic 10
- Message 14 Mon Jan 25, 1993
- HOWIE-CBM (Forwarded)
-
- As JBEE correctly notes Transactor programs are not in the PD. In fact,
- I believe that these files are no longer regularly available on CIS.
-
- Instead Malcolm will give the files to anyone interested, on request.
-
- So, if there are one or two things of interest, I can port it over here,
- but it would have to be only thru e-mail transfer.
-
- Howie
- ------------
- Category 5, Topic 10
- Message 15 Tue Jan 26, 1993
- R.KNOP1 [Rob Knop] (Forwarded)
-
- Or, it's time to bribe/cajole/threaten/blackmail Malcom into getting online
- here on GEnie... :)
-
- -Rob
- ------------
- Category 5, Topic 10
- Message 16 Wed Jan 27, 1993
- A.BURGER [Alex Burger] (Forwarded)
-
- It is possible to make CPower64 work with an REU, but not the C128 version.
-
- I played around with it a while ago, and figured out how to make it work, but
- I never got around to actually fixing it. I hope I still have the scaps of
- paper that had the info on it!
-
- Finding a page in memory to place RAMDos isn't a big problem. I actually had
- it installed in page 4, which is the 40 column screen. I was able to get a
- directory listing etc inside the shell, but things wouldn't compile. Here's
- why:
-
- When Adrian modified CPower64 to work with RAMDos64, one of the things he did
- was make a change to the CC command. Originally, Brian (Hilchie, the author)
- wrote the CC command so that it would join two files using the DOS CONCAT
- command. According to Fred Bowen, RAMDOS 64 and 128 don't support this
- command. All that is needed is to patch the code so that it does the CONCAT
- manually.
-
- If I can find my scraps of paper, I might actually do the fix for it next
- week.. It's been a while though. :)
-
- BTW, Ben Pederson uploaded all his files to CRS a couple years ago.
- if you want, I can get a file listing of all the files in the
- CPower directory for you.
-
- Alex
-
- P.S. I just found my scraps!
-
- ------------
- Category 5, Topic 10
- Message 17 Wed Jan 27, 1993
- HOWIE-CBM (Forwarded)
-
- Rob,
-
- Just hollar if there is something specific I can get for you.
-
- Howie
- ------------
- Category 5, Topic 10
- Message 18 Thu Jan 28, 1993
- C128.JBEE (Forwarded)
-
- Get that listing ;)
- ------------
- Category 5, Topic 10
- Message 19 Thu Jan 28, 1993
- HOWIE-CBM (Forwarded)
-
- Alex,
-
- CRS? Not familair with it. I do know that they are on (also?)
- The Learning Experience BBS. Haven't been on there for a while
- but as I recall an entire section was set aside for all those
- Power C Library files.
-
- Howie
- ------------
- Category 5, Topic 10
- Message 20 Wed Feb 03, 1993
- A.BURGER [Alex Burger] (Forwarded)
-
- re: CRS
-
- I'd say it's more like the Learning Experience BBS echo CRS's NANET
- conferences. :)
-
- CRS is a PcBoard system running with 200 nodes. They support many comupters
- including the C64. I used to be the 'COMMODORE CHAIRMAN' of the GEOS/C64
- conference. You may have seen that name before.. :)
-
- I'll capture the list next time I'm on. I guess I'll just upload the file.
-
- Alex
-
- ------------
- Category 5, Topic 10
- Message 21 Thu Feb 04, 1993
- HOWIE-CBM (Forwarded)
-
- Alex,
-
- Yes, I have seen the COMMODORE CHAIRMAN! :)
-
- Howie
- ------------
- Category 5, Topic 10
- Message 22 Sat Feb 20, 1993
- E.RAFANAN (Forwarded)
-
- Well about the bugs I found in Power C 128... thanks to certain individuals on
- GEnie, the fixes for a couple of them have been made available.
-
- The peek-poke bug has a fix - it's in assembly so you'll aolso need to get the
- C-assembler (here on GEnie).
-
- The 1581 is also supported now - I believe it is also in assembly.
-
- Pretty interesting stuff. I also saw the source for the Power C 64 "newcc"
- command. It doesn't look to hard to adapt so that the C128 can use RAMDos.
- Of course, buying a RAMLink would be alot easier... :D
-
- Later!
- ------------
- Category 5, Topic 10
- Message 23 Thu May 13, 1993
- D.HARKER1 [Dan] at 22:48 EDT
-
- For those who are looking for Power C.
- I just received the Summer 1993 Software Support catalog. In the
- liquidations & closeouts section (page 91) they list the Spinnaker:Better
- Working Power C for $9.97. (Power C contains both c64 & c128 in one
- package.) Also listed are:
- Better Working Power Assembler
- BASIC compilers (64 & 128)
- COBAL (64 & 128)
- Fortran (64)
-
- Software Support International
- 2700 NE Andresen Rd.,Suite A-10
- Vancouver, Wa. 98661 U.S.A.
-
- USA and Canada order line: 1-800-356-1179
- Other countries call: 1-206-695-1393
- Fax order line: 1-206-695-0059
-
- They accept Mastercard, Visa, Discover, and COD ($4.50 charge).
-
-
- Dan
-
-
- ------------
- Category 5, Topic 10
- Message 24 Sat May 15, 1993
- HOWIE-CBM at 11:57 EDT
-
- Dan,
-
- Thanks!!
-
- I called and ordered my copy of Power C this AM.
-
- Howie
- ------------
- Category 5, Topic 10
- Message 25 Wed Oct 06, 1993
- D.SCHWARTZ at 04:04 EDT
-
- Just out of curiosity... I have a C compiler from a company called Proline
- that's called "C POWER 64". Is that the same as what you have all been
- refering to as POWER C?
-
- Last question... I might be able to enjoy using Super-C if it wasn't for the
- stupid copy protection! I would like to load the entire system disk onto my
- 1581 and do everything on it, mainly because I have JiffyDOS in my 1581 and
- not in my 1571. Because of the stupid copy protection, I have to wait what
- seems to be an eternity for the compiler, linker, and editor to load off the
- 1571 every time I need them (which is too often) and I barely notice any
- advantage in using the 1581 other than the fact that it holds more!! How much
- can you speed up the reading or writing of a small source-file!?? Does Abacus
- possibly have a 1581 version?
-
- Thanx- Derek
- ------------
- Category 5, Topic 10
- Message 26 Wed Oct 06, 1993
- CMD-DOUG at 19:19 EDT
-
- Call them about that. I seem to recall making a 1581 version of Super C during
- my tenure at Abacus. Been a while, though, so it's hard to recall.
- ------------
- Category 5, Topic 10
- Message 27 Fri Oct 08, 1993
- D.HARKER1 [Dan] at 23:15 EDT
-
- Derek,
- I believe I have this right: Someone (I don't know who) wrote a C package
- that was marketed in Canada by Proline and it was called "C POWER" (there were
- versions for both the c64 & c128). Proline in turn sold the U.S. rights to
- Spinnaker who sold the C package as "POWER C". About Super-C: I haven't used
- this package myself, but I have heard that it has some quirks that make it non-
- K&R standard (the standard before ANSI), that it wouldn't generate free-
- standing programs, and yes that it is copy protected. If I'm wrong about this
- someone out there please correct me. If I can make a suggestion: Get a copy of
- POWER C by Spinnaker (this is what I am currently using). It isn't copy
- protected (I have used it on 8250 and CMD-HD-40 drives); it will generate
- executables to be run from under the C shell or as free-standing programs; and
- both c64 & c128 versions (with bug- fixes over the older C POWER) are included
- in the same package. About 2-3 months ago I saw POWER C being sold by Software
- Support (800-356-1179 for orders) for I believe $10.00. The down side to POWER
- C: it is a bare bones package with just the basic libraries (I've been spoiled
- by the VOLUMES of libraries that a certain super-charged C package for the
- blue machines contain), but POWER C does contain a library making utility and
- costs a lot less than other C packages. About speed: If you are using a c128,
- POWER C allows you to set-aside a bank for a ram-disk while you are under the
- C-shell (I stash the editor, compiler, and linker there). This won't help the
- speed of reading source files, but files in the ram disk load very quickly.
- For my own curiosity... How many people out there are trying to learn C-
- language? Are you having problems? I'm no expert but maybe I can help.
- Dan
- ------------
- Category 5, Topic 10
- Message 28 Sat Oct 09, 1993
- C128.JBEE at 00:23 EDT
-
- Been a while but when I got Super C from Abacus I had to return it because
- it wouldn't run off my MSD drives! Which were all I had for 5.25
- drives at the time (I love these drives;).
-
- ------------
- Category 5, Topic 10
- Message 29 Sat Oct 09, 1993
- A.PEROTTI at 15:35 EDT
-
-
- I have Super C 128 and have been using "Teach Yourself C" by
-
- Charles Siegel to try and learn the language bit by bit.
-
- Dan, do you recommend any specific text or other tool to speed up
-
- the learning process. I've been at it - off and on - for a couple
-
- of years now.
-
- Tony
-
- ------------
- Category 5, Topic 10
- Message 31 Mon Oct 11, 1993
- C128.JBEE at 01:05 EDT
-
- Well, next time don't drop it on your toe ;D
-
- ------------
- Category 5, Topic 10
- Message 32 Mon Oct 11, 1993
- F.OGLE [Color BBS] at 01:15 EDT
-
- I heard a rumour of cranky MSD drives becoming disgruntled and "biting" the
- hand that feeds tham disks ... ;)
- ------------
- Category 5, Topic 10
- Message 33 Tue Oct 12, 1993
- MIKE.DUNCAN at 22:13 EDT
-
- Dan,
- I got one of those Power C packages from SSI, and was wondering what
- would be the best way to set it up. Haven't really had a chance to
- get started yet. I'll be installing it on a C-128 with a CMD HD,
- RAMLink, 1571, and 1750 REU. Any suggestions?
- ------------
- Category 5, Topic 10
- Message 34 Sat Oct 16, 1993
- D.HARKER1 [Dan] at 02:13 EDT
-
- Tony,
-
- Funny you should mention 2-years, I had a copy of Power-C in the closet for
- about that long. I had tried it and couldn't make heads-or-tails of it. When
- the company I work for offered to send me to classes for C-programming I
- jumped
- at the chance and soon learned where my problems were:
- 1. The books I had gotten were written assuming you would be programming on
- a Clone or under UNIX.
- 2. I had tried to learn C based on what I knew of BASIC. This caused me
- problems. (Kind'a like trying to learn Russian based on what you know of
- English.) The syntax and structure of C is very different from BASIC.
-
- Back to your question about books. You need books that show C from a generic
- point of view. Try the following:
-
- Practical C Programming by Steve Oualline ISBN 0-937175-65-X
- Programming in C by Stephen G. Kochan ISBN 0-672-48420-X
- C Programming Guide by Jack J. Purdum ISBN 0-88022-157-7
-
- I don't know of any tools that will speed up the learning. The only way to
- learn programming is to program, but that puts you in a catch-22 situation.
- I'm not sure how far you have gotten with the basics of C. Do you know what
- functions, the preprocessor, the compiler, and the linker are? Would some
- program fragments with comments help?
-
-
- Mike,
-
- I don't have a RAMlink so I can't say about it, but I do have a CMD HD with
- Power-C installed on it. I have three 1-meg native type partitions set-up;
- 'power c work dsk', 'power c library', and 'power c utility'.
-
- Into 'power c work dsk' (I made this one bootable) I placed 'shell',
- 'shell2', all the executables (files ending in .sh), and all the header
- files (files ending in .h). You'll find these files on the 'Editor/
- Compiler Package: Side A' floppy.
-
- Into 'power c library' I placed the remainder of the files from the
- 'Editor/Compiler Package: Side A' and all the files from the 'Function
- Libraries: Side B' floppy.
-
- I have reserved 'power c utility' for utilities that weren't part of the
- original C-package, pieces of source code I'm not currently working on, and
- general misc. stuff.
-
- This allows automatic resolution of functions so I wouldn't get the 'place
- the floppy in the drive' prompts (Power-C was set-up for floppys).
-
- Check out the file setcm.arc #13239 on setting the shell drive unit numbers
- to CMD partition numbers.
-
- Hmmm..... I just had a thought. If you or anyone else doesn't already know
- how to program in C you won't be able to make use of setcmd.arc. Do you
- know how to program in C? I'll rework setcmd.arc into a executable with
- prompts and upload the executable for novices.
-
- I hope this helps and doesn't confuse you.
-
- Dan
-
- ------------
- Category 5, Topic 10
- Message 35 Sun Oct 17, 1993
- A.PEROTTI at 01:03 EDT
-
-
-
-
- Hi Dan, Thanks for the response, I will look up some of those books soon.
- Using a book and the program documentation I have successfully written,
- compiled and linked working programs, so I know it can be done. You are right
- about the Catch-22 situation. I too am suffering under the Ghost of BASIC
- past, even though I'm not much of a programer in that language either. What I
- think I need to do is finish the book I have (teach yourself...C) and start a
- few programming projects to get my feet wet.
-
-
- Tony
- ------------
- Category 5, Topic 10
- Message 36 Mon Oct 18, 1993
- D.SCHWARTZ [FORBIN ONE] at 04:56 EDT
-
- Yeah, Super-C is copy protected. I hate the way you are forced to use that
- stupid command shell. Why can't someone write a "C" compiler for the C-64 or
- C-128 that will load straight in and ask for a source file name and
- automatically link it together like some of the compilers I have used on MS-
- DOS and CP/M systems?
-
- Super-C-64 will give you the choice to select where you will be using the
- program: The command shell or BASIC v2. The 128 version requires that you
- make a run-disk to run your programs. Pretty stupid, since the main thing I
- would want to do with any programs I write is to upload them to local boards
- as single files!
-
- The C POWER 64 that I have by Proline seems like it was pretty good for the
- time it was written, but it has the same stupid command shell that Super-C
- has. One cool thing about Super-C is that it comes with graphics and I/O
- libraries. Proline doesn't seems to have much but the basics, although I
- havn't tried to compile anything with it. I tried to compile a few sample
- programs from the "C" programming class that I took at a local community
- college and although they were supposed to run on any ANSI standard compiler,
- Super-C would error out unless certain things were typed in exactly the way
- that the instruction manual showes! That would make it just about impossible
- to PORT a program from another system!
- ------------
- Category 5, Topic 10
- Message 37 Mon Oct 18, 1993
- D.BURR at 22:23 EDT
-
- Neither program is particularly viable at present, as both are old fashioned
- Kernighan and Ritchie style compilers rather than the newer ANSI standard that
- most books teach. Also, each of them is really just a subset of K and R; no
- bit fields, very temperatmental about assigning structures and unions, blah
- blah blah. In short the learning curve is rough due to these numerous
- incompatibilities with current texts, and there is really no reason to use
- such a limited version of C on an 8 bit computer; you can't use all that nifty
- c-code from other computers, and pure assembler is smaller and faster. I did
- hear on Internet that a group was proposing a fully ANSI-compliant compiler
- for the 64 and 128, but never heard if they got around to doing it or not.
- ANSI compliance would at least give it some functionality as a learning tool,
- and make porting code MUCH easier.
- ------------
- Category 5, Topic 10
- Message 38 Tue Oct 19, 1993
- C.TAYLOR37 [C=Hacking] at 07:06 EDT
-
- Re: Group on the Internet doing the C Compiler....
-
- The Group is still active but... it's getting bogged down in details
- unfortunately and is intermittant in terms of work actually being done
- unfortunately. I don't like saying it but don't think that it'll take off.
- *sighs*
-
- Power C is probably the best out of the two: (Super-C and Power-C) but has
- some flaws in it's compilation and it's not quite as clunky to use as Super-
- C. I like it - it works - but just wish it would do what it does better. (It
- also generates executables that are larger than I think they should be...)
-
- The best bet for learning C on the Commodore is probably a 128 running CP\M -
- there are several C compilers for CP-M that will work on the C-128. (80
- columns and an REU help for this type of work...)
-
- ------------
- Category 5, Topic 10
- Message 39 Thu Oct 21, 1993
- D.BURR at 23:47 EDT
-
- No wings on the project eh? That's a shame, but it was certainly a great idea
- Craig.
- ------------
- Category 5, Topic 10
- Message 40 Thu Oct 21, 1993
- M.RANDALL2 [Maurice] at 23:48 EDT
-
- I think the biggest problem with C on a 64 or 128 is that we are
- limited on memory size and a C program tends to get too big. So for
- a program that needs to do a lot of stuff ends up being too big to
- be practical. But for smaller stuff, it is OK and for someone just
- learning C, it is a good place to start. A person could learn the
- basics on the 64 or 128 and then move on to do C on a different
- machine that can handle the larger programs. You know, like the
- massive extra big Windows stuff.
- But, I don't do Windows...
- ------------
- Category 5, Topic 10
- Message 42 Fri Oct 22, 1993
- M.RANDALL2 [Maurice] at 21:36 EDT
-
- But you have to admit that GEOS has a much better way for using the
- modular approach. To do this with a C program, you need modules to
- reside in separate files, but can store big GEOS programs in VLIR
- records. You're right Jeff, though, but you still must admit that
- a 100K program written in C wouldn't be as elaborate as a 100K
- program written in assembly language for GEOS.
- Please don't get e wrong here. I'm not cuttin down C. I have Power C
- installed on my HD and like experimenting with it now and then. I wish
- I had more time to work with it. But I'm too tied up with GEOS
- programming. Heck, Jeff, I've got about four unfinished programs
- sitting here, just waiting to be finished and submitted to Loadstar.
- I'll find the time to finish those soon. Now that I just finished
- V2.2 of geoSHELL (It's shipping this next week), I'm deep into a
- major project that I've been talking about for awhile. It's called
- Finally! and I think the name is sort of fitting.
- It would be fun to do some GEOS programming in C. I wish someone
- would develop an ANS C compiler for GEOS. That might be a pretty
- good setup, what with all the available kernal routines in GEOS.
- ------------
- Category 5, Topic 10
- Message 43 Sat Oct 23, 1993
- D.HARKER1 [Dan] at 02:54 EDT
-
- I've just uploaded 'setcmd-p.arc'. This is 'setcmd.arc' rewritten to give
- prompts for setting the Power-C 128 disk units on the CMD HD. I wasn't
- thinking
- about people that may not know how to program in C, this is for them. Place
- 'setcmd-p.sh' in your 'work disk' partition (the partition you boot in) and
- execute it at the shell prompt. There will be no prompt for disk unit 2 (I
- did
- this to reserve it for a ram-disk).
-
- Tony,
- Glad to help. I think the 'Practical C Programming' is best, but the others
- are good also. Once I was able to get a little of the 'C mind-set' it started
- to make sense. C wasn't written to be easy to learn like BASIC, but the idea
- of
- recycling code and isolating variables appeals to me. I can't say I'm a great
- programmer either, but I like playing with it. Good luck.
-
- Looking over the other messages, yes Power-C isn't one of the newer ANSI
- type
- packages, but I can't yet justify the price of another machine and the price
- of one of the other C-packages. Besides, it keeps me outa trouble, ya'know ?
- I am sorry to hear about the Internet group. That ANSI C compiler would be
- interesting to try. Maybe they will make it yet, we can hope.
-
- I wonder, have any of you that have used Power-C 128 tried to access
- relative
- files? I have tried using the open() and on the first record read everything
- is o.k. I set to a
- o.k. I set the record to a new number and the next read returns the same data
- as the first read. Any ideas?
-
- Dan
- ------------
- Category 5, Topic 10
- Message 44 Sun Oct 24, 1993
- MIKE.DUNCAN at 18:02 EDT
-
-
- Dan: Nope. No C progamming experience here. Just got Power C
- from SSI, and have Kochan's book Programming in ANSI C. Looks
- like a pretty cryptic language alright.
-
- Thanks for the info. I'll pick up the SETCMD-P.ARC from the LIB
- and give it a try.
-
- Mike D.
- ------------
- Category 5, Topic 10
- Message 45 Mon Nov 29, 1993
- S.GOLDSMITH2 [Iron.Man] at 02:53 EST
-
- Hi all you crazy C programmers,
-
- I just sent my latest SG C Tools 1.5 for C128 CP/M to the C128 CP/M lib! I
- added 640 X 400 interlace graphics primitives and a new demo. Requires Hi-
- Tech C 3.09 from CP/M RT to compile.
-
- SG :)
-
- ------------
- Category 5, Topic 10
- Message 47 Sun Dec 05, 1993
- S.GOLDSMITH2 [Iron.Man] at 01:41 EST
-
- SG C TOOLS 1.5
-
- THE BEST C= SUPPORTED C TOOLS AROUND!
-
- OVERVIEW
-
- SG C Tools ANSI C library unlocks the power of the C128 running
- CP/M! High level and low level functions are included to access
- the VDC, SID and CIA. All source code is compatible with the
- Freeware version of Hi Tech C. A demo is included to show you how
- to use most features.
-
-
- REQUIREMENTS
-
- A C128 or C128D running CP/M 3.0 or a IBM PC running a CP/M
- emulator and DOS to CP/M file transfer software.
-
- At least one 1581, two 1571s, large RAM disk or hard drive to
- compile on a C128.
-
- 80 column monitor for VDC specific routines. 640 X 480 interlace
- graphics requires a monitor that can handle this format.
-
- ANSI C programming experience.
-
-
- FEATURES
-
- CIA
-
- Get/set TOD clocks, convert TOD BCD to HH:MM:SS AM, set interrupt
- controllers, get/set 1.02 MHz timers, convert Hz to timer latch
- value, read joy sticks and low level keyboard scan. Demo shows you
- how to read 2 joy sticks, 4 paddles, 2 mice and the extended 128
- keyboard.
-
- VDC
-
- FAST! I/O, buffered I/O, fills, copies, scrolling, text output,
- windows, 80 X 50 interlace text, 64K mode, etc.
-
- FAST! graphics primitives for pixel plotting, lines, text output,
- etc. Demo shows you how to do windows and graphics.
-
- VIEW PCX IMAGES
-
- Use industry standard .PCX images in your C programs! Demo shows
- you how to view 640 X 200 and 640 X 480 images.
-
- SID
-
- Read pots, read 1351 compatible mouse, clear SID, set master
- volume, set envelopes, set attack/release cycles, set pulse wave,
- etc. Demo includes sound effects!
-
- PLAY FOUR BIT DIGITIZED SOUNDS
-
- Now you can play .RAW or Zounds type sound files in your C
- programs! Demo shows you how to play a .RAW file.
-
-
- GET IT ON GENIE!
-
- You can down load SGTOOL15.ARC (13916) from the Commodore RT file
- library.
-
- You can get the Hi-Tech C compiler from the CP/M RT file library.
- See SGCTOOLS.DOC in SGTOOL15.ARC for the files to get.
-
- ------------
- Category 5, Topic 10
- Message 48 Mon Feb 28, 1994
- S.GOLDSMITH2 [Iron.Man] at 18:39 EST
-
- Hi everyone,
-
- I'm sending SGTOOL16.LZH t the RT. SG C Tools for C128 CP/M is the most
- powerful ANSI C library you can get for the C= in any mode. Comes complete
- with demo showing you how to use famous Z Blaster 4 bit sound, PCX to VDC
- decode engines, Fred Bowen's 640X480 VDC interlace, graphics primitives and
- other cool high and low level functions. Just use SUBMIT LIB to build all the
- files in LIBC128.ARC. DEMO.C tells you how to compile with Freeware Hi- Tech
- C 3.09. I decided to release all source code. Two computer jobs and my PC
- Turbo Vision tools are taking too much time. I figure it will make some
- hacker in Germany happy and would like to check out any cool programs
- developed with it.
-
- SG :)
-
- ------------
- Category 5, Topic 10
- Message 49 Sat Mar 05, 1994
- PIXELS [See-C] at 15:29 EST
-
- Ref: previous messages on "SG C TOOLS 1.5"
-
- Anyone interested in a similar, ML library for Power C on the C64.
- (8O+ graphics [line, dot, circle, polygon, fill, pattern-fill,
- mob-define/move], sound, input [mouse-jstick], sprite,
- raster-interrupt primitives, MORE...)
-
- May work on the C128 running in C64 mode, also. I don't own a
- 128 and don't know if the memory addresses of the C64 are
- duplicated on a 128 in 64 mode.
-
- It's not free-- but it's less then cheap. I will upload a
- working demo with re-usable functions (.src) IF the interest is
- here on Genie.
-
- Those not owning Power C...
- If the interest is here, I'll also complete my project of a
- K-&-R C for the C64, similar to Power C-- but AVAILABLE.
- I was working on it while on Qlink, but the
- interest seemed to die out, or the membership moved on.
- I'm not interested in pursueing ANSI compatability at this time.
- I'm more interested in a C with targetable loading address AND
- control over zero page usage/NON-usage so that true "stand-alone/
- background" programs AND utilities AND interrupts can be written
- in the C for the 64.
-
- Reply here, or email.
- ------------
- Category 5, Topic 10
- Message 50 Sun Mar 06, 1994
- S.GOLDSMITH2 [Iron.Man] at 05:00 EST
-
- C128 Programmers:
-
- I just released PCX'EM 1.2 640 X 480 VDC PCX viewer! PCXEM12.ARC compiles
- with Freeware Hi-Tech C and SGTOOL16.ARC Freeware SG C Tools 1.6. I've seen
- GIF Z80 source in the CP/M RT, so you could use this engine to view GIFs by
- replacing PCX'EM's decode section. When I have more time I'll try to release
- my Z Blaster RAW player sources...
-
- You can check out the SG C Tools demo as SGDEMO16.ARC if you don't have HI-
- Tech C from the CP/M RT or the disk resources.
-
- SG :)
-
- ------------
- Category 5, Topic 10
- Message 51 Mon Mar 07, 1994
- E.RAFANAN at 23:25 EST
-
- Where do you get Hi-Tech C from ?
-
- And, on another note, I read on the Internet that someone had a C-compiler
- (ANSI) that was able to cross compile into 6502 code. And, they were going to
- try to compile the compiler so we would have a true ANSI C-compiler (the
- source is apparently public - GNU perhaps?).
-
- ------------
- Category 5, Topic 10
- Message 52 Tue Mar 08, 1994
- S.GOLDSMITH2 [Iron.Man] at 02:09 EST
-
- >Where do you get Hi-Tech C from ?
-
- The CP/M RT file library has Hi-Tech C. Look at SGCTOOLS.DOC in SGTOOL16.ARC
- for the exact names or search library with 'tech c'.
-
- >And, on another note, I read on the Internet that someone had a C-compiler
- >(ANSI) that was able to cross compile into 6502 code. And, they were going
- >to try to compile the compiler so we would have a true ANSI C-compiler (the
- >source is apparently public - GNU perhaps?).
-
- Hi-Tech has a DOS cross compiler that supports 6502 and Z80 among others. A
- demo is in the CP/M RT too. If someone does make a true 6502 ANSI C for the
- C= I'd like to look at it. I haven't heard about it, but it's possible...
-
- SG :)
-
- ------------
- Category 5, Topic 10
- Message 53 Tue Mar 08, 1994
- T.GOSSER1 [PowerUserMag] at 09:55 EST
-
- Hey Eric, why dont you answer your e-mail?
- ------------
- Category 5, Topic 10
- Message 54 Tue Mar 08, 1994
- C128.JBEE at 17:10 EST
-
- There is a MS-DOS C cross compiler and it sells for $600. I have seen
- it floating around and people posting it is PD. It is not.
- ------------
- Category 5, Topic 10
- Message 55 Tue Mar 08, 1994
- E.RAFANAN at 23:18 EST
-
- Nope that's not it (I hope). <grin> The person posting definately had the
- source. Then again, this could all be vaporware...
-
-
-
- ------------
- Category 5, Topic 10
- Message 56 Wed May 18, 1994
- S.GOLDSMITH2 [Iron.Man] at 02:04 EDT
-
- I just uploaded a C128 CP/M RAW player/converter with C source for Hi-Tech C
- and SG C Tools 1.6 (SGTOOL16.ARC). The name is ZBRAW11.ARC when released.
-
- SG :)
-
- ------------
- Category 5, Topic 10
- Message 57 Wed Nov 16, 1994
- PIXELS [Lee Sr.] at 20:40 EST
-
- J.Fowler,
-
- Ref: .a suffix files.
- These need to be 'assembled' with the Power C, C assembler.
- This is included on the 128 Power C disk, but not for the C64 and nor
- will it work. For Power C on the 64 you must download file #10517 CASSM.SFX .
- This is the same Power C assembler 128, user modified for use on the C64.
-
- What system are you using Power C on? I use the C64. I can provide
- further advice/pointers AND FUNCTIONS, BUT... they may not apply (or be
- useful) for Power C 128.
-
- Let me know and I'll know more what I should shoot up here for ya.
-
- --Lee Sr.
- ------------
- Category 5, Topic 10
- Message 58 Fri Nov 25, 1994
- J.FOWLER [Lone Wolf] at 02:42 EST
-
- I am using Power C on my 128D with a FD-2000 drive and ramlink. I have noticed
- a "bug?" in the link where it does not seem to like linking to a different
- drive than the one the link is located on. Have you had the same problem? By
- the way I have the 64 and 128 versions of Power C and Power Ass. I haven't
- tried the 64 version yet, because I was wanting to try and learn how to
- program effectively on the 128.
- ------------
-
- 5 ?