[net.micro.cbm] Help!

fred@wcom.UUCP (Fred Falk ) (03/11/85)

	Hi there! I'm not using VIDTEX, but a homebrew terminal program...
the problem is, I seem to be unable to program in C because I can't generate
a right curly brace. Anyone have an idea as to what the control codes might
be on a 64?

Please send replies via mail to:
  [vax135|ihnp4]!timeinc!wcom!fred

calway@ecsvax.UUCP (James Calloway) (03/17/85)

References: <16@wcom.UUCP>
x
Curly braces are ASCII 123 and 125. They correspond to shift-plus (window pane)
and shift-minus (vertical line) on the Commodore 64.
Shift-plus is open, shift-minus is close.



-- 

James  Calloway
The News and Observer
Box 191
Raleigh, N.C. 27602
(919) 829-4570
{akgua,decvax}!mcnc!ecsvax!calway

mff@wuphys.UUCP (Swamp Thing) (05/15/85)

I recently downloaded a BASIC program from BYTENET onto a C64.  The problem is
this.  The program ended up in an ASCII sequential-type file.  I cannot get it
loaded to run in this form.  Looking at other BASIC programs on the disc, I saw
that they were of type "PROGRAM".  So, I read the sequential file into another
file of type "PROGRAM", one line at a time.  This produced garbage. (GIGO?).
So, what do I do now?  Any help will be greatly appreciated.  Thanks in
advance.




						Mark F. Flynn
						Department of Physics
						Washington University
						St. Louis, MO  63130
						ihnp4!wuphys!mff

------------------------------------------------------------------------------

"There is no dark side of the moon, really.
 Matter of fact, it's all dark."

				P. Floyd

lenoil@mit-eddie.UUCP (Robert Scott Lenoil) (05/17/85)

In article <277@wuphys.UUCP> mff@wuphys.UUCP (Mark F. Flynn) writes:
>I recently downloaded a BASIC program from BYTENET onto a C64.  The problem is
>this.  The program ended up in an ASCII sequential-type file.  I cannot get it
>loaded to run in this form.  Looking at other BASIC programs on the disc, I saw
>that they were of type "PROGRAM".  So, I read the sequential file into another
>file of type "PROGRAM", one line at a time.  This produced garbage. (GIGO?).
>So, what do I do now?  Any help will be greatly appreciated.  Thanks in
>advance.

BASIC programs are stored in a crunched (tokenized) form.  Your ASCII listing
can not be run by the BASIC interpreter.  You need a method to tokenize that
program listing.  The March issue of the Transactor had a utility that would
help.  It munged things so that the C64 took its input from a disk file instead
of from the screen.  With that utility, you could simply run your program file
as input, and the 64 would read it in line-by-line, building a program as if
you had typed in the lines yourself.

The way this utility works is by modifying the CLALL kernel call so that
logical file #1 is not closed, but remains open.  Then the BASIC warmstart
routine is changed to set the default input to logical file #1, instead of the
screen.  This procedure continues, until READST indicates end of file, at which
time normal screen input is restored.