RE: BASIC -> ASCII -> BASIC

g.j.p.a.a.baltissen_at_kader.hobby.nl
Date: 2000-10-05 22:09:06

Hallo Nick,

> The {} method is perhaps the easiest to standardise to with the option of
> expressing things as both {code} and {function}, eg {28} is equivalent to
> {red}
> 
> any thoughts?

I'm not sure what you mean with the last question. So I cut that conversion 
tables out of my program:

Ctrl1 : array[0..31] of string[8] =
(''      ,''      ,''      ,''      ,''      ,'white'   ,''      ,''
,'dish'  ,'ensh'  ,''      ,''      ,''      ,'return'  ,'swlc'  ,''
,''      ,'down'  ,'rvon'  ,'home'  ,'del'   ,''        ,''      ,''
,''      ,''      ,''      ,'esc'   ,'red'   ,'->'      ,'green' ,'blue');


Ctrl2 : array[0..31] of string[8] =
(''      ,'orange',''      ,''      ,''      ,''        ,''      ,''
,''      ,''      ,''      ,''      ,''      ,'shreturn','swuc'  ,''
,'black' ,'up'    ,'rvof'  ,'clr'   ,'inst'  ,'brown'   ,'ltred' ,'grey1'
,'grey2' ,'ltgree','ltblue','grey3' ,'purple','<-'      ,'yellow','cyan');


The first block translates the values 0 to 31, the second 128 to 159. See the 
Prog. Ref. Guide if you don't understand the abreviations. So a BASIC line can 
look like this:

20 print "First line{down}{left}{left}second line"

Groetjes, Ruud.

-
This message was sent through the cbm-hackers mailing list.
To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tml.hut.fi.

Archive generated by hypermail 2.1.1.