[comp.sys.atari.st] Sozobon C questions

steve@bungia.mn.org (Steve Yelvington) (08/09/89)

 jjl@psuecl.bitnet writes...

>      I have been trying to get my Sozobon C compiler to work for a while
>now but to no good end.  Whenever I try to compile a program and type something
>as basic as cc nlp.c, it comes back with unknown file suffix "nlp.c" , why
>is it taking the whole file as the file suffix, any ideas?  

The Sozobon cc.ttp program assumes that you use a command shell that can
pass arguments unmangled. The behavior you describe suggests that your
command shell is upcasing the tail (arguments). That's trouble -- cc is
case-sensitive, and jas may be as well. You can NOT run cc from the
Desktop.

(In a separate article,  jjl@psuecl.bitnet writes...)

>      Would anyone be kind enough to give me a little help with C here.
>I am using MJC and Sozobon C and have just used them for very primitive
>things... what I would like to know is if there are any calls so that I
>can reposition the cursor to any x,y coordiante on the screen.... and also
>if there is a way to plot individual poixels on the screen from a call.

To position the text cursor (not the mouse pointer!) you can use the
VT52 escape code:

<esc>Y<row><column>

as in:

printf("\033Y%d%d", row, column)

Plotting individual pixels is another matter entirely. You can use the
Line A graphics routines (in assembler), but there is almost no publicly
available documentation on Line A. Your best bet probably is to use the
VDI output function v_pline(handle, count, pxyarray) and plot a line with
only one point.


  -- Steve Yelvington, up at the lake in Minnesota
  ... pwcs.stpaul.gov!stag!thelake!steve