home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / Information / 02CAT5MSGS.SFX / 04cat5msgs next >
Encoding:
Text File  |  1990-02-12  |  37.5 KB  |  1,027 lines

  1.  ************
  2. Topic 10        Sun Jan 17, 1993
  3. E.RAFANAN                    (Forwarded) 
  4. Sub: Programming in C                       
  5.  
  6. Any tips, tricks, etc. for programming in C using Power C
  7. 58 message(s) total.
  8.  ************
  9.  ------------
  10. Category 5,  Topic 10
  11. Message 1         Sun Jan 17, 1993
  12. E.RAFANAN                    (Forwarded) 
  13.  
  14. Anybody have any experience using Power C?
  15.  
  16. I've been playing around with it for awhile now, and it seems like a pretty
  17. good package, but there are a few shortcomings to it, such as:
  18.  
  19. The 'peek' function seems to have a bug in it - it corrupts certain variables
  20. when it is called.
  21.  
  22. The shell doesn't like RAMDOS - no matter where you put the interface page, it
  23. eventually locks up on you.
  24.  
  25. The disk directory functions don't like the 1581. Also, the 'opendir' function
  26. wants to call a drive by 'unit' instead of 'device' number.
  27.  
  28. And there is hardly any info on ow to write more functions in  machine
  29. language for use by Power C.
  30.  
  31. Power C is still a pretty good package all-in-all - especially when their
  32. isn't much more to choose from! :D
  33.  
  34. Does anybody have any more info, source, etc. on using Power C? I've already
  35. got most everything on Genie. I would gotten the stuff on QLink, but I
  36. cancelled my account.... :(
  37.  
  38. Thanks in advance! Eric Rafanan
  39.  ------------
  40. Category 5,  Topic 10
  41. Message 2         Tue Jan 19, 1993
  42. R.KNOP1 [Rob Knop]           (Forwarded) 
  43.  
  44. Eric-
  45.  
  46. I've used Power C 128 a little.  It worked fine with my 1581, though I didn't
  47. try using the directory functions.
  48.  
  49. Are you using a 128 or a 64?
  50.  
  51. Re: writing ML functions, there were a few articles in the Transactor that
  52. discussed doing this with Power C 64.  Doing it with Power C 128 is basically
  53. the same, though some of the memory locations are different.  I did some work
  54. on figuring this out;  probably ought to write it up :)
  55.  
  56. There are (at least) two relevant Transactors.  I wasn't very neat in taking
  57. notes on where the articles were :), but I have dug this up:
  58.  
  59. Volume 8, Issue 5, Page 36
  60.  
  61. I'll try to figure out what the other article I found was.
  62.  
  63. I agree that Power C is a nice package.  There _is_ actually another C
  64. compiler for the 128 - Super C, from Abacus.  Not sure which one produces
  65. better code, is faster, etc., but from what I've seen (I've got 'em both, but
  66. haven't done a whole heck of a lot of C on my 128), I prefer Power C. For one,
  67. it lets you create standalone applications. Also, I like the way it memory
  68. maps better, and (because of Transactor articles and easier-to-hack modules)
  69. I've made better progress in figuring out a good way to write ML modules for C
  70. programs!
  71.  
  72.  
  73. ANYBODY: Is there an index of Transactor articles out there anywhere?  In any
  74. database format?  You know, with Keywords, titles, page numbers, and the like?
  75. That'd be useful as heck!
  76.  
  77. -Rob
  78.  ------------
  79. Category 5,  Topic 10
  80. Message 3         Tue Jan 19, 1993
  81. CBM-ED [e.g.bell]            (Forwarded) 
  82.  
  83. That is on my to-do list, Rob, though I am still in need of Volume 4  issues 4-
  84. 6 for my own collection.  (Don't have anything prior to Vol 4 in case you got
  85. that impression).  There was a Bits and Pieces book that contained all of them
  86. up to a point.  
  87.  
  88. A person *could* type up a list of the article, bits, etc. and use my indexer
  89. program to cross-reference the stuff.
  90.  ------------
  91. Category 5,  Topic 10
  92. Message 4         Wed Jan 20, 1993
  93. HOWIE-CBM                    (Forwarded) 
  94.  
  95.  Eric,
  96.  
  97.  I believe that Ben Pedersen(sp?) either amassed or wrote or both tons of
  98.  Library files for Power C to do lots of things, including graphics.
  99.  
  100.  I have never used any of this, so all my info comes from reading
  101.  postings about it.
  102.  
  103.  I am pretty sure that I saw where he uses it with 1581 drives as well
  104.  as a REU.
  105.  
  106.  I am not sure if we have all these files here on GEnie.  If not, I can
  107.  try to get these.
  108.  
  109.  Rob,
  110.  
  111.  I believe that an index of Transactor articles already exists.  I will
  112.  inquire to find out for sure.
  113.  
  114.  Howie
  115.  ------------
  116. Category 5,  Topic 10
  117. Message 5         Thu Jan 21, 1993
  118. F.CANANZI                    (Forwarded) 
  119.  
  120. Speaking of Power C 128. Anyone know where to get this version. I have the 64
  121. version .. it's the same really .. just that the 128 version is compiled with
  122. the 128 version. At least that is what i'm told.
  123.  
  124.  ------------
  125. Category 5,  Topic 10
  126. Message 6         Fri Jan 22, 1993
  127. CBM-MARK                     (Forwarded) 
  128.  
  129.  Power C is no longer marketed, you'll have to try rounding up a used copy.
  130.  
  131.                  ~~Mark~~
  132.  ------------
  133. Category 5,  Topic 10
  134. Message 7         Fri Jan 22, 1993
  135. C.OGLE2 [breadstick]         (Forwarded) 
  136.  
  137.  Hmmm.... Power C I don't know about, but Briwall is still selling "Super C"
  138. 64 and 128 for $49. Don't know if there's too much difference between that and
  139. Power, though...
  140.  ------------
  141. Category 5,  Topic 10
  142. Message 8         Fri Jan 22, 1993
  143. E.RAFANAN                    (Forwarded) 
  144.  
  145. Thanks for all the iinfo guys!
  146.  
  147. As far as writing ML functions, there's an assembler for Power C in the libs.
  148. You might be able to figure out the filename.o format from seeing how they're
  149. made. :D Actually, I don't know how informative it really is since I haven't
  150. had a chance to look through it yet.
  151.  
  152. I saw some stuff on Qlink but I don't know how much of that applies to Power
  153. C.
  154.  
  155. Anyway, thanks for all the info again!  Can't wait to hear more. Thanks!
  156.  ------------
  157. Category 5,  Topic 10
  158. Message 9         Sat Jan 23, 1993
  159. HOWIE-CBM                    (Forwarded) 
  160.  
  161.  Rob,
  162.  
  163.  I checked with Malcolm O'Brien to see if he knew if any index of
  164.  Transactor articles existed.
  165.  
  166.  He said this was one of the things they had intended to do,
  167.  but never got around to.
  168.  
  169.  So, as far as I know there isn't a complete index available at
  170.  this time.
  171.  
  172.  Howie
  173.  ------------
  174. Category 5,  Topic 10
  175. Message 10        Sat Jan 23, 1993
  176. F.CANANZI                    (Forwarded) 
  177.  
  178. Howie... Malcolm is a sysop on Compuserve . It is my understanding that
  179. Compuserve has a large section of Transactor material on line .... Think we
  180. could  get that material and add it here ?
  181.  
  182.  ------------
  183. Category 5,  Topic 10
  184. Message 11        Sun Jan 24, 1993
  185. R.KNOP1 [Rob Knop]           (Forwarded) 
  186.  
  187. I've gone through the Tables of Contentesisesis of the Transactors that I have
  188. (was challenging when the bulb gave out on the little 30x microscope I use to
  189. read the microfiche editions), and this is what I've come up with for article
  190. related to Power C
  191.  
  192.  Vol Iss Page    Title  (probably paraphrased)
  193.  ---------------------------------------------
  194.  7   5   34      A Tale of Two C's      [comparison of Power C and Super C]
  195.  8   5   36      The Link Between C and Assembly  [MOST excellent article!]
  196.  8   5   42      Maintinaing the Power C Library
  197.  9   3   56      Serial I/O in Power C
  198.  9   4   26      The 64 Power C Shell  [This one isn't in Tab. of Contents!]
  199.  9   5   34      Implmenting a RAMdisk [for Power C 64]
  200.  9   5   50      C Problems, Tips, & Observations
  201.  9   5   68      A _glob_ function for Power C
  202.  
  203. The 8(5):36 article is the one which is most relevant to writing assembly
  204. functions for use with C.  The article is written for Power C 64, but the
  205. structure of Power C 128 linker files is the same as those for Power C 64.
  206. What is different is the memory map; locations of things like argument storage
  207. and system variables, zero page usage, and such differ between Power C 64 and
  208. Power C 128.  I've figured some of it out from using the C128 monitor to
  209. dissassemble and hex dump both Power C 128 linker library functions as well as
  210. short little compiled programs that I've written. However, it's been a few
  211. months, and I would hesitate to write here anything from my haphazard notes
  212. that I probably don't understand any more.  I will write more if I figure it
  213. out well enough to stake at least a little reputation on it :)
  214.  
  215. -Rob
  216.  ------------
  217. Category 5,  Topic 10
  218. Message 12        Sun Jan 24, 1993
  219. CBM-ED [e.g.bell]            (Forwarded) 
  220.  
  221. You know, for those of us who have most of the Transactors, it might be an
  222. interesting project to come up with a format for an index and then each do one
  223. up within that format.  We could index it by topic at first, then perhaps by
  224. keyword later.  I don't know what is available on other  platforms, but my
  225. Indexer program does a creditable job of indexing things based on a
  226. word/phrase list you supply, and it is quite fast.  It would make a nice
  227. reference for those who need information, even when they do  not have the T. 
  228. Make it easier on those w/the T to answer their questions when they can refer
  229. to a specific vol/issue/page #/article, etc. More work.... just a thought tho
  230.  
  231. BTW, when I said 'each do one up w/in that format', I meant each do, say, 1
  232. volume.  Since there are only 36 magazines really involved (from my
  233. standpoint..... volumes 4-9) it would be a project, but do-able.
  234.  
  235. The TOC would be easy at first, the bits and letters would have to be  done
  236. individually for page number, as would the TransBloopurz, but  dissecting the
  237. job like this certainly makes it seem smaller.
  238.  ------------
  239. Category 5,  Topic 10
  240. Message 13        Sun Jan 24, 1993
  241. C128.JBEE                    (Forwarded) 
  242.  
  243.  I doubt I would make any files from the Transactor live unless I had legal
  244.  proof the files were PD or freely distributable.
  245.  ------------
  246. Category 5,  Topic 10
  247. Message 14        Mon Jan 25, 1993
  248. HOWIE-CBM                    (Forwarded) 
  249.  
  250.  As JBEE correctly notes Transactor programs are not in the PD.  In fact,
  251.  I believe that these files are no longer regularly available on CIS.
  252.  
  253.  Instead Malcolm will give the files to anyone interested, on request.
  254.  
  255.  So, if there are one or two things of interest, I can port it over here,
  256.  but it would have to be only thru e-mail transfer.
  257.  
  258.  Howie
  259.  ------------
  260. Category 5,  Topic 10
  261. Message 15        Tue Jan 26, 1993
  262. R.KNOP1 [Rob Knop]           (Forwarded) 
  263.  
  264. Or, it's time to bribe/cajole/threaten/blackmail Malcom into getting online
  265. here on GEnie... :)
  266.  
  267. -Rob
  268.  ------------
  269. Category 5,  Topic 10
  270. Message 16        Wed Jan 27, 1993
  271. A.BURGER [Alex Burger]       (Forwarded) 
  272.  
  273.   It is possible to make CPower64 work with an REU, but not the C128 version.
  274.  
  275. I played around with it a while ago, and figured out how to make it work, but
  276. I never got around to actually fixing it.  I hope I still have the scaps of
  277. paper that had the info on it!
  278.  
  279. Finding a page in memory to place RAMDos isn't a big problem.  I actually had
  280. it installed in page 4, which is the 40 column screen. I was able to get a
  281. directory listing etc inside the shell, but things wouldn't compile.  Here's
  282. why:
  283.  
  284. When Adrian modified CPower64 to work with RAMDos64, one of the things he did
  285. was make a change to the CC command.  Originally, Brian (Hilchie, the author)
  286. wrote the CC command so that it would join two files using the DOS CONCAT
  287. command.  According to Fred Bowen, RAMDOS 64 and 128 don't support this
  288. command.  All that is needed is to patch the code so that it does the CONCAT
  289. manually.
  290.  
  291. If I can find my scraps of paper, I might actually do the fix for it next
  292. week..  It's been a while though.  :)
  293.  
  294. BTW, Ben Pederson uploaded all his files to CRS a couple years ago.
  295.      if you want, I can get a file listing of all the files in the
  296.      CPower directory for you.
  297.  
  298. Alex
  299.  
  300. P.S.  I just found my scraps!
  301.  
  302.  ------------
  303. Category 5,  Topic 10
  304. Message 17        Wed Jan 27, 1993
  305. HOWIE-CBM                    (Forwarded) 
  306.  
  307.  Rob,
  308.  
  309.  Just hollar if there is something specific I can get for you.
  310.  
  311.  Howie
  312.  ------------
  313. Category 5,  Topic 10
  314. Message 18        Thu Jan 28, 1993
  315. C128.JBEE                    (Forwarded) 
  316.  
  317.  Get that listing ;)
  318.  ------------
  319. Category 5,  Topic 10
  320. Message 19        Thu Jan 28, 1993
  321. HOWIE-CBM                    (Forwarded) 
  322.  
  323.  Alex,
  324.  
  325.  CRS?  Not familair with it.  I do know that they are on (also?)
  326.  The Learning Experience BBS.  Haven't been on there for a while
  327.  but as I recall an entire section was set aside for all those
  328.  Power C Library files.
  329.  
  330.  Howie
  331.  ------------
  332. Category 5,  Topic 10
  333. Message 20        Wed Feb 03, 1993
  334. A.BURGER [Alex Burger]       (Forwarded) 
  335.  
  336.   re: CRS
  337.  
  338. I'd say it's more like the Learning Experience BBS echo CRS's NANET
  339. conferences.  :)
  340.  
  341. CRS is a PcBoard system running with 200 nodes.  They support many comupters
  342. including the C64.  I used to be the 'COMMODORE CHAIRMAN' of the GEOS/C64
  343. conference.  You may have seen that name before..  :)
  344.  
  345. I'll capture the list next time I'm on.  I guess I'll just upload the file.
  346.  
  347. Alex
  348.  
  349.  ------------
  350. Category 5,  Topic 10
  351. Message 21        Thu Feb 04, 1993
  352. HOWIE-CBM                    (Forwarded) 
  353.  
  354.  Alex,
  355.  
  356.  Yes, I have seen the COMMODORE CHAIRMAN!   :)
  357.  
  358.  Howie
  359.  ------------
  360. Category 5,  Topic 10
  361. Message 22        Sat Feb 20, 1993
  362. E.RAFANAN                    (Forwarded) 
  363.  
  364. Well about the bugs I found in Power C 128... thanks to certain individuals on
  365. GEnie, the fixes for a couple of them have been made available.
  366.  
  367. The peek-poke bug has a fix - it's in assembly so you'll aolso need to get the
  368. C-assembler (here on GEnie). 
  369.  
  370. The 1581 is also supported now - I believe it is also in assembly.
  371.  
  372. Pretty interesting stuff.  I also saw the source for the Power C 64 "newcc"
  373. command.  It doesn't look to hard to adapt so that the C128 can use RAMDos. 
  374. Of course, buying a RAMLink would be alot easier... :D
  375.  
  376. Later!
  377.  ------------
  378. Category 5,  Topic 10
  379. Message 23        Thu May 13, 1993
  380. D.HARKER1 [Dan]              at 22:48 EDT
  381.  
  382.  For those who are looking for Power C.
  383.   I just received the Summer 1993 Software Support catalog. In the
  384.  liquidations & closeouts section (page 91) they list the Spinnaker:Better
  385.  Working Power C for $9.97. (Power C contains both c64 & c128 in one
  386.  package.) Also listed are:
  387.  Better Working Power Assembler
  388.  BASIC compilers (64 & 128)
  389.  COBAL (64 & 128)
  390.  Fortran (64)
  391.  
  392.  Software Support International
  393.  2700 NE Andresen Rd.,Suite A-10
  394.  Vancouver, Wa. 98661   U.S.A.
  395.  
  396.  USA and Canada order line: 1-800-356-1179
  397.  Other countries call: 1-206-695-1393
  398.  Fax order line: 1-206-695-0059
  399.  
  400.  They accept Mastercard, Visa, Discover, and COD ($4.50 charge).
  401.  
  402.  
  403.                                        Dan
  404.  
  405.  
  406.  ------------
  407. Category 5,  Topic 10
  408. Message 24        Sat May 15, 1993
  409. HOWIE-CBM                    at 11:57 EDT
  410.  
  411. Dan,
  412.  
  413. Thanks!!
  414.  
  415. I called and ordered my copy of Power C this AM.
  416.  
  417. Howie
  418.  ------------
  419. Category 5,  Topic 10
  420. Message 25        Wed Oct 06, 1993
  421. D.SCHWARTZ                   at 04:04 EDT
  422.  
  423. Just out of curiosity...  I have a C compiler from a company called Proline
  424. that's called "C POWER 64".  Is that the same as what you have all been
  425. refering to as POWER C?
  426.  
  427. Last question... I might be able to enjoy using Super-C if it wasn't for the
  428. stupid copy protection!  I would like to load the entire system disk onto my
  429. 1581 and do everything on it, mainly because I have JiffyDOS in my 1581 and
  430. not in my 1571.  Because of the stupid copy protection, I have to wait what
  431. seems to be an eternity for the compiler, linker, and editor to load off the
  432. 1571 every time I need them (which is too often) and I barely notice any
  433. advantage in using the 1581 other than the fact that it holds more!!  How much
  434. can you speed up the reading or writing of a small source-file!??  Does Abacus
  435. possibly have a 1581 version?
  436.  
  437. Thanx- Derek
  438.  ------------
  439. Category 5,  Topic 10
  440. Message 26        Wed Oct 06, 1993
  441. CMD-DOUG                     at 19:19 EDT
  442.  
  443. Call them about that. I seem to recall making a 1581 version of Super C during
  444. my tenure at Abacus. Been a while, though, so it's hard to recall.
  445.  ------------
  446. Category 5,  Topic 10
  447. Message 27        Fri Oct 08, 1993
  448. D.HARKER1 [Dan]              at 23:15 EDT
  449.  
  450. Derek,
  451.  I believe I have this right: Someone (I don't know who) wrote a C package
  452. that was marketed in Canada by Proline and it was called "C POWER" (there were
  453. versions for both the c64 & c128). Proline in turn sold the U.S. rights to
  454. Spinnaker who sold the C package as "POWER C". About Super-C: I haven't used
  455. this package myself, but I have heard that it has some quirks that make it non-
  456. K&R standard (the standard before ANSI), that it wouldn't generate free-
  457. standing programs, and yes that it is copy protected. If I'm wrong about this
  458. someone out there please correct me. If I can make a suggestion: Get a copy of
  459. POWER C by Spinnaker (this is what I am currently using). It isn't copy
  460. protected (I have used it on 8250 and CMD-HD-40 drives); it will generate
  461. executables to be run from under the C shell or as free-standing programs; and
  462. both c64 & c128 versions (with bug- fixes over the older C POWER) are included
  463. in the same package. About 2-3 months ago I saw POWER C being sold by Software
  464. Support (800-356-1179 for orders) for I believe $10.00. The down side to POWER
  465. C: it is a bare bones package with just the basic libraries (I've been spoiled
  466. by the VOLUMES of  libraries that a certain super-charged C package for the
  467. blue machines contain), but POWER C does contain a library making utility and
  468. costs a lot less than other C packages. About speed: If you are using a c128,
  469. POWER C allows you to set-aside a bank for a ram-disk while you are under the
  470. C-shell (I stash the editor, compiler, and linker there). This won't help the
  471. speed of reading source files, but files in the ram disk load very quickly.
  472. For my own curiosity... How many people out there are trying to learn C-
  473. language? Are you having problems? I'm no expert but maybe I can help.
  474.                                     Dan
  475.  ------------
  476. Category 5,  Topic 10
  477. Message 28        Sat Oct 09, 1993
  478. C128.JBEE                    at 00:23 EDT
  479.  
  480.  Been a while but when I got Super C from Abacus I had to return it because
  481.  it wouldn't run off my MSD drives!  Which were all I had for 5.25
  482.  drives at the time (I love these drives;).
  483.  
  484.  ------------
  485. Category 5,  Topic 10
  486. Message 29        Sat Oct 09, 1993
  487. A.PEROTTI                    at 15:35 EDT
  488.  
  489.  
  490.  I have Super C 128 and have been using "Teach Yourself C" by 
  491.  
  492.  Charles Siegel to try and learn the language bit by bit.
  493.  
  494.  Dan, do you recommend any specific text or other tool to speed up 
  495.  
  496.  the learning process.  I've been at it - off and on - for a couple
  497.  
  498.  of years now.
  499.  
  500.  Tony
  501.  
  502.  ------------
  503. Category 5,  Topic 10
  504. Message 31        Mon Oct 11, 1993
  505. C128.JBEE                    at 01:05 EDT
  506.  
  507.  Well, next time don't drop it on your toe ;D
  508.  
  509.  ------------
  510. Category 5,  Topic 10
  511. Message 32        Mon Oct 11, 1993
  512. F.OGLE [Color BBS]           at 01:15 EDT
  513.  
  514. I heard a rumour of cranky MSD drives becoming disgruntled and "biting" the
  515. hand that feeds tham disks ... ;)
  516.  ------------
  517. Category 5,  Topic 10
  518. Message 33        Tue Oct 12, 1993
  519. MIKE.DUNCAN                  at 22:13 EDT
  520.  
  521.   Dan,
  522.   I got one of those Power C packages from SSI, and was wondering what
  523.   would be the best way to set it up.  Haven't really had a chance to
  524.   get started yet.  I'll be installing it on a C-128 with a CMD HD,
  525.   RAMLink, 1571, and 1750 REU.  Any suggestions?
  526.  ------------
  527. Category 5,  Topic 10
  528. Message 34        Sat Oct 16, 1993
  529. D.HARKER1 [Dan]              at 02:13 EDT
  530.  
  531.  Tony,
  532.  
  533.   Funny you should mention 2-years, I had a copy of Power-C in the closet for
  534.  about that long. I had tried it and couldn't make heads-or-tails of it. When
  535.  the company I work for offered to send me to classes for C-programming I
  536. jumped
  537.  at the chance and soon learned where my problems were:
  538.   1. The books I had gotten were written assuming you would be programming on
  539.  a Clone or under UNIX.
  540.   2. I had tried to learn C based on what I knew of BASIC. This caused me
  541.  problems. (Kind'a like trying to learn Russian based on what you know of
  542.  English.) The syntax and structure of C is very different from BASIC.
  543.  
  544.   Back to your question about books. You need books that show C from a generic
  545.  point of view. Try the following:
  546.  
  547.  Practical C Programming  by  Steve Oualline       ISBN 0-937175-65-X
  548.  Programming in C         by  Stephen G. Kochan    ISBN 0-672-48420-X
  549.  C Programming Guide      by  Jack J. Purdum       ISBN 0-88022-157-7
  550.  
  551.   I don't know of any tools that will speed up the learning. The only way to
  552.  learn programming is to program, but that puts you in a catch-22 situation.
  553.  I'm not sure how far you have gotten with the basics of C. Do you know what
  554.  functions, the preprocessor, the compiler, and the linker are? Would some
  555.  program fragments with comments help?
  556.  
  557.  
  558.  Mike,
  559.  
  560.   I don't have a RAMlink so I can't say about it, but I do have a CMD HD with
  561.  Power-C installed on it. I have three 1-meg native type partitions set-up;
  562.  'power c work dsk', 'power c library', and 'power c utility'.
  563.  
  564.   Into 'power c work dsk' (I made this one bootable) I placed 'shell',
  565.  'shell2', all the executables (files ending in .sh), and all the header
  566.  files (files ending in .h). You'll find these files on the 'Editor/
  567.  Compiler Package: Side A' floppy.
  568.  
  569.   Into 'power c library' I placed the remainder of the files from the
  570.  'Editor/Compiler Package: Side A' and all the files from the 'Function
  571.  Libraries: Side B' floppy.
  572.  
  573.   I have reserved 'power c utility' for utilities that weren't part of the
  574.  original C-package, pieces of source code I'm not currently working on, and
  575.  general misc. stuff.
  576.  
  577.   This allows automatic resolution of functions so I wouldn't get the 'place
  578.  the floppy in the drive' prompts (Power-C was set-up for floppys).
  579.  
  580.   Check out the file setcm.arc #13239 on setting the shell drive unit numbers
  581.  to CMD partition numbers.
  582.  
  583.  Hmmm..... I just had a thought. If you or anyone else doesn't already know
  584.  how to program in C you won't be able to make use of setcmd.arc. Do you
  585.  know how to program in C? I'll rework setcmd.arc into a executable with
  586.  prompts and upload the executable for novices.
  587.  
  588.   I hope this helps and doesn't confuse you.
  589.  
  590.                                      Dan
  591.  
  592.  ------------
  593. Category 5,  Topic 10
  594. Message 35        Sun Oct 17, 1993
  595. A.PEROTTI                    at 01:03 EDT
  596.  
  597.  
  598.  
  599.  
  600. Hi Dan, Thanks for the response,  I will look up some of those books soon. 
  601. Using a book and the program documentation I have successfully written,
  602. compiled and linked working programs, so I know it can be done.  You are right
  603. about the Catch-22 situation.  I too am suffering under the Ghost of BASIC
  604. past, even though I'm not much of a programer in that language either.  What I
  605. think I need to do is  finish the book I have (teach yourself...C) and start a
  606. few  programming projects to get my feet wet.
  607.  
  608.  
  609. Tony
  610.  ------------
  611. Category 5,  Topic 10
  612. Message 36        Mon Oct 18, 1993
  613. D.SCHWARTZ [FORBIN ONE]      at 04:56 EDT
  614.  
  615. Yeah, Super-C is copy protected.  I hate the way you are forced to use that
  616. stupid command shell.  Why can't someone write a "C" compiler for the C-64 or
  617. C-128 that will load straight in and ask for a source file name and
  618. automatically link it together like some of the compilers I have used on MS-
  619. DOS and CP/M systems?
  620.  
  621. Super-C-64 will give you the choice to select where you will be using the
  622. program:  The command shell or BASIC v2.  The 128 version requires that you
  623. make a run-disk to run your programs.  Pretty stupid, since the main thing I
  624. would want to do with any programs I write is to upload them to local boards
  625. as single files!
  626.  
  627. The C POWER 64 that I have by Proline seems like it was pretty good for the
  628. time it was written, but it has the same stupid command shell that Super-C
  629. has.  One cool thing about Super-C is that it comes with graphics and I/O
  630. libraries.  Proline doesn't seems to have much but the basics, although I
  631. havn't tried to compile anything with it.  I tried to compile a few sample
  632. programs from the "C" programming class that I took at a local community
  633. college and although they were supposed to run on any ANSI standard compiler,
  634. Super-C would error out unless certain things were typed in exactly the way
  635. that the instruction manual showes!  That would make it just about impossible
  636. to PORT a program from another system!
  637.  ------------
  638. Category 5,  Topic 10
  639. Message 37        Mon Oct 18, 1993
  640. D.BURR                       at 22:23 EDT
  641.  
  642. Neither program is particularly viable at present, as both are old fashioned
  643. Kernighan and Ritchie style compilers rather than the newer ANSI standard that
  644. most books teach. Also, each of them is really just a subset of K and R; no
  645. bit fields, very temperatmental about assigning structures and unions, blah
  646. blah blah. In short the learning curve is rough due to these numerous
  647. incompatibilities with current texts, and there is really no reason to use
  648. such a limited version of C on an 8 bit computer; you can't use all that nifty
  649. c-code from other computers, and pure assembler is smaller and faster. I did
  650. hear on Internet that a group was proposing a fully ANSI-compliant compiler
  651. for the 64 and 128, but never heard if they got around to doing it or not.
  652. ANSI compliance would at least give it some functionality as a learning tool,
  653. and make porting code MUCH easier.
  654.  ------------
  655. Category 5,  Topic 10
  656. Message 38        Tue Oct 19, 1993
  657. C.TAYLOR37 [C=Hacking]       at 07:06 EDT
  658.  
  659. Re: Group on the Internet doing the C Compiler....
  660.  
  661. The Group is still active but... it's getting bogged down in details
  662. unfortunately and is intermittant in terms of work actually being done
  663. unfortunately. I don't like saying it but don't think that it'll take off.
  664. *sighs*
  665.  
  666. Power C is probably the best out of the two: (Super-C and Power-C) but has
  667. some flaws in it's compilation and it's not quite as clunky to use as Super-
  668. C. I like it - it works - but just wish it would do what it does better. (It
  669. also generates executables that are larger than I think they should be...)
  670.  
  671. The best bet for learning C on the Commodore is probably a 128 running CP\M -
  672. there are several C compilers for CP-M that will work on the C-128. (80
  673. columns and an REU help for this type of work...)
  674.  
  675.  ------------
  676. Category 5,  Topic 10
  677. Message 39        Thu Oct 21, 1993
  678. D.BURR                       at 23:47 EDT
  679.  
  680. No wings on the project eh? That's a shame, but it was certainly a great idea
  681. Craig.
  682.  ------------
  683. Category 5,  Topic 10
  684. Message 40        Thu Oct 21, 1993
  685. M.RANDALL2 [Maurice]         at 23:48 EDT
  686.  
  687.  I think the biggest problem with C on a 64 or 128 is that we are 
  688.  limited on memory size and a C program tends to get too big. So for
  689.  a program that needs to do a lot of stuff ends up being too big to
  690.  be practical. But for smaller stuff, it is OK and for someone just
  691.  learning C, it is a good place to start. A person could learn the
  692.  basics on the 64 or 128 and then move on to do C on a different
  693.  machine that can handle the larger programs. You know, like the 
  694.  massive extra big Windows stuff.
  695.  But, I don't do Windows...
  696.  ------------
  697. Category 5,  Topic 10
  698. Message 42        Fri Oct 22, 1993
  699. M.RANDALL2 [Maurice]         at 21:36 EDT
  700.  
  701.  But you have to admit that GEOS has a much better way for using the
  702.  modular approach. To do this with a C program, you need modules to 
  703.  reside in separate files, but can store big GEOS programs in VLIR
  704.  records. You're right Jeff, though, but you still must admit that
  705.  a 100K program written in C wouldn't be as elaborate as a 100K 
  706.  program written in assembly language for GEOS.
  707.  Please don't get e wrong here. I'm not cuttin down C. I have Power C
  708.  installed on my HD and like experimenting with it now and then. I wish
  709.  I had more time to work with it. But I'm too tied up with GEOS
  710.  programming. Heck, Jeff, I've got about four unfinished programs
  711.  sitting here, just waiting to be finished and submitted to Loadstar.
  712.  I'll find the time to finish those soon. Now that I just finished 
  713.  V2.2 of geoSHELL (It's shipping this next week), I'm deep into a 
  714.  major project that I've been talking about for awhile. It's called
  715.  Finally! and I think the name is sort of fitting.
  716.  It would be fun to do some GEOS programming in C. I wish someone
  717.  would develop an ANS C compiler for GEOS. That might be a pretty
  718.  good setup, what with all the available kernal routines in GEOS.
  719.  ------------
  720. Category 5,  Topic 10
  721. Message 43        Sat Oct 23, 1993
  722. D.HARKER1 [Dan]              at 02:54 EDT
  723.  
  724.   I've just uploaded 'setcmd-p.arc'. This is 'setcmd.arc' rewritten to give
  725.  prompts for setting the Power-C 128 disk units on the CMD HD. I wasn't
  726. thinking
  727.  about people that may not know how to program in C, this is for them. Place
  728.  'setcmd-p.sh' in your 'work disk' partition (the partition you boot in) and
  729.  execute it at the shell prompt. There will be no prompt for disk unit 2 (I
  730. did
  731.  this to reserve it for a ram-disk).
  732.  
  733.  Tony,
  734.   Glad to help. I think the 'Practical C Programming' is best, but the others
  735.  are good also. Once I was able to get a little of the 'C mind-set' it started
  736.  to make sense. C wasn't written to be easy to learn like BASIC, but the idea
  737. of
  738.  recycling code and isolating variables appeals to me. I can't say I'm a great
  739.  programmer either, but I like playing with it. Good luck.
  740.  
  741.   Looking over the other messages, yes Power-C isn't one of the newer ANSI
  742. type
  743.  packages, but I can't yet justify the price of another machine and the price
  744.  of one of the other C-packages. Besides, it keeps me outa trouble, ya'know ?
  745.  I am sorry to hear about the Internet group. That ANSI C compiler would be
  746.  interesting to try. Maybe they will make it yet, we can hope.
  747.  
  748.   I wonder, have any of you that have used Power-C 128 tried to access
  749. relative
  750.  files? I have tried using the open() and on the first record read everything
  751. is o.k. I set to a
  752.  o.k. I set the record to a new number and the next read returns the same data
  753.  as the first read. Any ideas?
  754.  
  755.                                   Dan
  756.  ------------
  757. Category 5,  Topic 10
  758. Message 44        Sun Oct 24, 1993
  759. MIKE.DUNCAN                  at 18:02 EDT
  760.  
  761.   
  762.   Dan: Nope. No C progamming experience here.  Just got Power C
  763.   from SSI, and have Kochan's book Programming in ANSI C.  Looks
  764.   like a pretty cryptic language alright.
  765.  
  766.   Thanks for the info. I'll pick up the SETCMD-P.ARC from the LIB
  767.   and give it a try.
  768.  
  769.   Mike D.
  770.  ------------
  771. Category 5,  Topic 10
  772. Message 45        Mon Nov 29, 1993
  773. S.GOLDSMITH2 [Iron.Man]      at 02:53 EST
  774.  
  775. Hi all you crazy C programmers,
  776.  
  777. I just sent my latest SG C Tools 1.5 for C128 CP/M to the C128 CP/M lib!  I
  778. added 640 X 400 interlace graphics primitives and a new demo.  Requires Hi-
  779. Tech C 3.09 from CP/M RT to compile.
  780.  
  781. SG :)
  782.  
  783.  ------------
  784. Category 5,  Topic 10
  785. Message 47        Sun Dec 05, 1993
  786. S.GOLDSMITH2 [Iron.Man]      at 01:41 EST
  787.  
  788.                         SG C TOOLS 1.5
  789.  
  790.               THE BEST C= SUPPORTED C TOOLS AROUND!
  791.  
  792. OVERVIEW
  793.  
  794. SG C Tools ANSI C library unlocks the power of the C128 running
  795.  CP/M!  High level and low level functions are included to access
  796.  the VDC, SID and CIA.  All source code is compatible with the
  797.  Freeware version of Hi Tech C.  A demo is included to show you how
  798.  to use most features.
  799.  
  800.  
  801. REQUIREMENTS
  802.  
  803. A C128 or C128D running CP/M 3.0 or a IBM PC running a CP/M
  804.  emulator and DOS to CP/M file transfer software.
  805.  
  806. At least one 1581, two 1571s, large RAM disk or hard drive to
  807.  compile on a C128.
  808.  
  809. 80 column monitor for VDC specific routines.  640 X 480 interlace
  810.  graphics requires a monitor that can handle this format.
  811.  
  812. ANSI C programming experience.
  813.  
  814.  
  815. FEATURES
  816.  
  817. CIA
  818.  
  819. Get/set TOD clocks, convert TOD BCD to HH:MM:SS AM, set interrupt
  820.  controllers, get/set 1.02 MHz timers, convert Hz to timer latch
  821.  value, read joy sticks and low level keyboard scan.  Demo shows you
  822.  how to read 2 joy sticks, 4 paddles, 2 mice and the extended 128
  823.  keyboard.
  824.  
  825. VDC
  826.  
  827. FAST! I/O, buffered I/O, fills, copies, scrolling, text output,
  828.  windows, 80 X 50 interlace text, 64K mode, etc.
  829.  
  830. FAST! graphics primitives for pixel plotting, lines, text output,
  831.  etc.  Demo shows you how to do windows and graphics.
  832.  
  833. VIEW PCX IMAGES
  834.  
  835. Use industry standard .PCX images in your C programs!  Demo shows
  836.  you how to view 640 X 200 and 640 X 480 images.
  837.  
  838. SID
  839.  
  840. Read pots, read 1351 compatible mouse, clear SID, set master
  841.  volume, set envelopes, set attack/release cycles, set pulse wave,
  842.  etc.  Demo includes sound effects!
  843.  
  844. PLAY FOUR BIT DIGITIZED SOUNDS
  845.  
  846. Now you can play .RAW or Zounds type sound files in your C
  847.  programs!  Demo shows you how to play a .RAW file.
  848.  
  849.  
  850. GET IT ON GENIE!
  851.  
  852. You can down load SGTOOL15.ARC (13916) from the Commodore RT file
  853.  library.
  854.  
  855. You can get the Hi-Tech C compiler from the CP/M RT file library.
  856.  See SGCTOOLS.DOC in SGTOOL15.ARC for the files to get.
  857.  
  858.  ------------
  859. Category 5,  Topic 10
  860. Message 48        Mon Feb 28, 1994
  861. S.GOLDSMITH2 [Iron.Man]      at 18:39 EST
  862.  
  863. Hi everyone,
  864.  
  865. I'm sending SGTOOL16.LZH t the RT.  SG C Tools for C128 CP/M is the most
  866. powerful ANSI C library you can get for the C= in any mode.  Comes complete
  867. with demo showing you how to use famous Z Blaster 4 bit sound, PCX to VDC
  868. decode engines, Fred Bowen's 640X480 VDC interlace, graphics primitives and
  869. other cool high and low level functions.  Just use SUBMIT LIB to build all the
  870. files in LIBC128.ARC.  DEMO.C tells you how to compile with Freeware Hi- Tech
  871. C 3.09.  I decided to release all source code.  Two computer jobs and my PC
  872. Turbo Vision tools are taking too much time.  I figure it will make some
  873. hacker in Germany happy and would like to check out any cool programs
  874. developed with it.
  875.  
  876. SG :)
  877.  
  878.  ------------
  879. Category 5,  Topic 10
  880. Message 49        Sat Mar 05, 1994
  881. PIXELS [See-C]               at 15:29 EST
  882.  
  883. Ref: previous messages on "SG C TOOLS 1.5"
  884.  
  885.      Anyone interested in a similar, ML  library for Power C on the C64.
  886.      (8O+ graphics [line, dot, circle, polygon, fill, pattern-fill,
  887.      mob-define/move], sound, input [mouse-jstick],  sprite,
  888.      raster-interrupt primitives, MORE...)
  889.  
  890.      May work on the C128 running in C64 mode, also.  I don't own a
  891.      128 and don't know if the memory addresses of the C64 are
  892.      duplicated on a 128 in 64 mode.
  893.  
  894.      It's not free-- but it's less then cheap.  I will upload a
  895.      working demo with re-usable functions (.src) IF the interest is
  896.      here on Genie.
  897.  
  898.      Those not owning Power C...
  899.      If the interest is here, I'll also complete my project of a
  900.      K-&-R C for the C64, similar to Power C-- but AVAILABLE.
  901.      I was working on it while on Qlink, but the
  902.      interest seemed to die out, or the membership moved on.
  903.      I'm not interested in pursueing ANSI compatability at this time.
  904.      I'm more interested in a C with targetable loading address AND
  905.      control over zero page usage/NON-usage so that true "stand-alone/
  906.      background" programs AND utilities AND interrupts can be written
  907.      in the C for the 64.
  908.  
  909.      Reply here, or email.
  910.  ------------
  911. Category 5,  Topic 10
  912. Message 50        Sun Mar 06, 1994
  913. S.GOLDSMITH2 [Iron.Man]      at 05:00 EST
  914.  
  915. C128 Programmers:
  916.  
  917. I just released PCX'EM 1.2 640 X 480 VDC PCX viewer!  PCXEM12.ARC compiles
  918.  with Freeware Hi-Tech C and SGTOOL16.ARC Freeware SG C Tools 1.6.  I've seen
  919. GIF Z80 source in the CP/M RT, so you could use this engine to view GIFs by
  920. replacing PCX'EM's decode section.  When I have more time I'll try to release
  921. my Z Blaster RAW player sources...
  922.  
  923. You can check out the SG C Tools demo as SGDEMO16.ARC if you don't have HI-
  924. Tech C from the CP/M RT or the disk resources.
  925.  
  926. SG :)
  927.  
  928.  ------------
  929. Category 5,  Topic 10
  930. Message 51        Mon Mar 07, 1994
  931. E.RAFANAN                    at 23:25 EST
  932.  
  933. Where do you get Hi-Tech C from ?
  934.  
  935. And, on another note, I read on the Internet that someone had a C-compiler
  936. (ANSI) that was able to cross compile into 6502 code. And, they were going to
  937. try to compile the compiler so we would have a true ANSI C-compiler (the
  938. source is apparently public - GNU perhaps?).
  939.  
  940.  ------------
  941. Category 5,  Topic 10
  942. Message 52        Tue Mar 08, 1994
  943. S.GOLDSMITH2 [Iron.Man]      at 02:09 EST
  944.  
  945. >Where do you get Hi-Tech C from ?
  946.  
  947. The CP/M RT file library has Hi-Tech C.  Look at SGCTOOLS.DOC in SGTOOL16.ARC
  948. for the exact names or search library with 'tech c'.
  949.  
  950. >And, on another note, I read on the Internet that someone had a C-compiler
  951.  >(ANSI) that was able to cross compile into 6502 code. And, they were going
  952. >to try to compile the compiler so we would have a true ANSI C-compiler (the
  953.  >source is apparently public - GNU perhaps?).
  954.  
  955. Hi-Tech has a DOS cross compiler that supports 6502 and Z80 among others.  A
  956. demo is in the CP/M RT too.  If someone does make a true 6502 ANSI C for the
  957. C= I'd like to look at it.  I haven't heard about it, but it's possible...
  958.  
  959. SG :)
  960.  
  961.  ------------
  962. Category 5,  Topic 10
  963. Message 53        Tue Mar 08, 1994
  964. T.GOSSER1 [PowerUserMag]     at 09:55 EST
  965.  
  966. Hey Eric, why dont you answer your e-mail?
  967.  ------------
  968. Category 5,  Topic 10
  969. Message 54        Tue Mar 08, 1994
  970. C128.JBEE                    at 17:10 EST
  971.  
  972.  There is a MS-DOS C cross compiler and it sells for $600.  I have seen
  973.  it floating around and people posting it is PD.  It is not.
  974.  ------------
  975. Category 5,  Topic 10
  976. Message 55        Tue Mar 08, 1994
  977. E.RAFANAN                    at 23:18 EST
  978.  
  979. Nope that's not it (I hope).  <grin> The person posting definately had the
  980. source.  Then again, this could all be vaporware...
  981.  
  982.  
  983.  
  984.  ------------
  985. Category 5,  Topic 10
  986. Message 56        Wed May 18, 1994
  987. S.GOLDSMITH2 [Iron.Man]      at 02:04 EDT
  988.  
  989. I just uploaded a C128 CP/M RAW player/converter with C source for Hi-Tech C
  990. and SG C Tools 1.6 (SGTOOL16.ARC).  The name is ZBRAW11.ARC when released.
  991.  
  992. SG :)
  993.  
  994.  ------------
  995. Category 5,  Topic 10
  996. Message 57        Wed Nov 16, 1994
  997. PIXELS [Lee Sr.]             at 20:40 EST
  998.  
  999.   J.Fowler,
  1000.  
  1001. Ref: .a suffix files.
  1002.      These need to be 'assembled' with the Power C, C assembler.
  1003.      This is included on the 128 Power C disk, but not for the C64 and nor
  1004. will it work.  For Power C on the 64 you must download file #10517 CASSM.SFX .
  1005. This is the same Power C assembler 128, user modified for use on the C64.
  1006.  
  1007.      What system are you using Power C on?  I use the C64.  I can provide
  1008. further advice/pointers AND FUNCTIONS, BUT... they may not apply (or be
  1009. useful) for Power C 128.
  1010.  
  1011.      Let me know and I'll know more what I should shoot up here for ya.
  1012.  
  1013. --Lee Sr.
  1014.  ------------
  1015. Category 5,  Topic 10
  1016. Message 58        Fri Nov 25, 1994
  1017. J.FOWLER [Lone Wolf]         at 02:42 EST
  1018.  
  1019. I am using Power C on my 128D with a FD-2000 drive and ramlink. I have noticed
  1020. a "bug?" in the link where it does not seem to like linking to a different
  1021. drive than the one the link is located on. Have you had the same problem?  By
  1022. the way I have the 64 and 128 versions of Power C and Power Ass. I haven't
  1023. tried the 64 version yet, because I was wanting to try and learn how to
  1024. program effectively on the 128.
  1025.  ------------
  1026.  
  1027. 5 ?