Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!unisoft!hoptoad!academ!killer!sentinel From: sentinel@killer.UUCP (The Sentinel) Newsgroups: comp.sys.cbm Subject: Re: C-power information for a 128 Message-ID: <967@killer.UUCP> Date: Sun, 7-Jun-87 22:02:40 EDT Article-I.D.: killer.967 Posted: Sun Jun 7 22:02:40 1987 Date-Received: Fri, 12-Jun-87 01:46:09 EDT References: <243@uwslh.UUCP> <3680@garfield.UUCP> <3682@garfield.UUCP> <354@polyslo.UUCP> Distribution: na Organization: A Un*x Box in Texas Lines: 49 In article <354@polyslo.UUCP>, jchikin@polyslo.UUCP (Joe Chikin) writes: > I had previously read on this netnews about a product called C-ASSM. > Is C-ASSM the same as Power Assembler/Buddy Assmbler? If it is not No, it isn't. C-ASSM is an assembler which operates under the C-Power environment. You use the C-Power editor to create and edit source files, and run the assembler as a shell command. And the most important feature of all is that C-ASSM creates C-Power object files which can then be linked with a C program. C-ASSM is, to my knowledge (since it was posted to the net), free of charge. > the same, what can it do to enhance my C-Power 128 compiler. Can I > link my machine language routines directly to my .o files and have > them contiguous in memory. Yes. If you set things up properly, you can write assembly language functions for C. The C-Power environment is also quite nice for developing stand-alone machine language programs as well, especially considering the availability of the linker. > [...] I'm having problems trying to open a > channel to device number #2 (modem). I can't seem to properly open > a channel without it just outputting junk. Please help. To open an RS-232 channel: char params[4] = { 0, 0, 69, 1 }; open(50,2,0,params); Note that the values of the array "params" are the values to place in the RS-232 registers, and the numbers above are for 1200 baud on my 128. The third value may differ between individual 128's... is you get garbage, tweak this value up or down until the garbage goes away. Also, when inputting from the modem, you will get much better results if you use sys() to call the Kernal, instead of using the C library routines. > Thanks in advance > Chikin Joe > Cal Poly SLO, Csc Dept. > San Luis Obispo, Ca -- Rob Tillotson ...ihnp4!killer!sentinel 3922-1 Newport Ave. -or- Fort Wayne, IN 46805 ...rutgers!unirot!sentinel (219) 483-2722 (top one preferred)