home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 July / Chip_2000-07_cd.bin / sharewar / basturbo / readme.txt < prev    next >
Text File  |  2000-05-08  |  5KB  |  197 lines

  1. BASIC2PAS 1.2
  2.  
  3. -------------------------------------------------------------------
  4. INTRODUCTION
  5.  
  6.     bas2pas help you to convert basic program to pascal.
  7.  
  8.     Your basic source must be in particular form, it's not fully 
  9.     compatible with QuickBasic.
  10.  
  11.  
  12.     Pactage description:
  13.  
  14.     bas2pas.exe         The converter
  15.     basic.tpu           Basic unit  ( for turbo Pascal 7.0 )
  16.     basic.inf           Info about basic unit
  17.     pmouse.tpu          Mouse unit  ( for turbo pascal 7.0 )
  18.     pmouse.inf          Info about mouse unit
  19.     svga16.bgi          SVGA driver 16 colors
  20.     svga256.bgi         SVGA driver 256 colors
  21.     readme.txt          This document
  22.     demo.bas            Demo program
  23.  
  24. -------------------------------------------------------------------
  25. IMPROVE TO QUICKBASIC
  26.  
  27.     SCREEN 14   SVGA graphic 640 x 400 x 256 colors
  28.     SCREEN 15   SVGA graphic 640 x 480 x 256 colors
  29.     SCREEN 16   SVGA graphic 800 X 600 X 256 colors
  30.     SCREEN 17   SVGA graphic 1024 x 768 x 256 colors
  31.  
  32.     LOADPALETTE(file$)  load the palette.
  33.     ZPALETTE(color,red,green,blue) change the palette
  34.     ACTIVEPALETTE active the palette 
  35.  
  36.     Also, you can use variables, units and pascal commands.
  37.     Exemples:
  38.  
  39.     %USES mouse  ( dont forget the % )
  40.     %VAR flag:boolean
  41.  
  42.     %READLN(a$)
  43.  
  44.     LOOP UNTIL KEYPRESSED
  45.  
  46.  
  47.     RUN execute a Dos program. Exempl.:  RUN "PRG.EXE"
  48.  
  49.  
  50. -------------------------------------------------------------------
  51. HOW TO USE BAS2PAS
  52.  
  53.     First save your basic program to text format,
  54.  
  55.     After, convert your program with the syntax:
  56.  
  57.        bas2pas BsicName[.bas] [PascalName.pas]
  58.  
  59.     Note that you dont need to use SHARED in your program because
  60.     all variables are global.
  61.  
  62. ------------------------------------------------------------------
  63. LIMITATIONS
  64.  
  65.    Bas2pas dont support:
  66.  
  67.    decimals ( but you can use  %VAR x:real  )
  68.    CHAIN ( use RUN )
  69.    GET #
  70.    GOSUB ( use SUB )
  71.    RETURN
  72.  
  73. -------------------------------------------------------------------
  74. BSC FUNCTION
  75.  
  76.   Turbo Pascal dont show the numeric variables with space. The corect
  77.   syntax is:
  78.  
  79.     PRINT "you have "; x; " $"  or
  80.     PRINT "You have"; bsc(x); "$"
  81.  
  82. -------------------------------------------------------------------
  83. SYSTEM VARIABLES
  84.  
  85.      ACDATA
  86.      AGRAPH
  87.      DEFMODE
  88.      GPALETTE
  89.      GRAPHDRIVER
  90.      GRAPHMODE
  91.      MODE
  92.      SW1
  93.      SW2
  94.      SW1$
  95.      SW2$
  96.  
  97. -------------------------------------------------------------------
  98. SUPPORTED COMMANDS
  99.  
  100.     BEEP
  101.     CALL
  102.     CIRCLE (x,y)[,rayon,color]
  103.     CLOSE #filenumber
  104.     CLS
  105.     COLOR fg [, bg]
  106.     DATA longint [,longint] ( or DATA string [,string] )
  107.     DEFINT A-Z
  108.     DEFDBL A-Z
  109.     DEFLNG A-Z
  110.     DEFSTR A-Z
  111.     DIM var [, var]
  112.     DO
  113.     END
  114.     END IF
  115.     END SUB
  116.     FOR id = longint TO longint ( or FOR id = longint to longint step -1 )
  117.     GET #filenumber
  118.     GOTO linenumber
  119.     IF exp THEN statements [ ELSE statements ]
  120.     INPUT [#filenumber,] var [, var]*
  121.     LINE (x1,y1)-(x2,y2)[[,c],BF]
  122.     LINE INPUT [#exp,] [prompt {,|;}] var
  123.     LOCATE y, x
  124.     LOOP
  125.     NEXT [id]
  126.     ON
  127.     OPEN filename [FOR {INPUT|OUTPUT}] as [#]filenumber
  128.     PAINT (x,y),c,b
  129.     PRINT [#filenumber,] print-list
  130.     PSET(x,y),color
  131.     RANDOMIZE
  132.     READ var [,var]
  133.     REM (or apostrophe)
  134.     RESTORE
  135.     RUN [string]
  136.     SCREEN
  137.     SUB
  138.     SLEEP seconds
  139.     SOUND frequency,duration
  140.     STOP
  141.     SWAP
  142.     WEND
  143.     WHILE exp
  144.     STOP
  145.     SYSTEM
  146.  
  147. -------------------------------------------------------------------
  148. SUPPORTED FUNCTIONS
  149.  
  150.     ASC()
  151.     CHR$()
  152.     CSRLIN
  153.     DATE$
  154.     FIX()
  155.     INKEY$
  156.     INPUT$()
  157.     INT()
  158.     LCASE$()
  159.     LEFT$()
  160.     LEN()
  161.     LTRIM$()
  162.     MID$()
  163.     MKD$()
  164.     MKI$()
  165.     MKL$()
  166.     MKS$()
  167.     POINT()
  168.     POS()
  169.     RIGHT$()
  170.     RND  ( int(rnd(1)* x ) or ( int(rnd * x) )
  171.     SPACE$()
  172.     STR$()
  173.     STRING$()
  174.     TIME$
  175.     UCASE$()
  176.     VAL()
  177.  
  178. -------------------------------------------------------------------
  179. VERSION INFO
  180.  
  181.     This is a trial version, limited to 31 days.
  182.  
  183. ------------------------------------------------------------------
  184. DISTRIBUTION
  185.  
  186.     All distribution is accepted.
  187.  
  188. -------------------------------------------------------------------
  189. CONTACT
  190.  
  191.     If any bugs, comments or sugestions, contact:
  192.  
  193.     Denis Verreault
  194.     ve2vdi@hotmail.com
  195.  
  196. -------------------------------------------------------------------
  197.