01-16-2004, 03:49 PM
OPL generates 80x86 assembly code from BASIC-like source files. It doesn't have any built in commands, hence the commands to be used are placed inside special include files. By now, there are commands for nearly anything you can do - all the important interrupts are covered.
The file type names are as follow:
OIL - OPL Include Library
OCL - OPL Compiled Library (basically, a COM file with another extension)
OPG - OPL Program Graphics - raster graphics file format used with the library MCGA286.OIL
OMF - OPL MAKE File - file for the OPL MAKE program (which is made in OPL!)
OPL - Source code file
Here is an example of the language:
The file type names are as follow:
OIL - OPL Include Library
OCL - OPL Compiled Library (basically, a COM file with another extension)
OPG - OPL Program Graphics - raster graphics file format used with the library MCGA286.OIL
OMF - OPL MAKE File - file for the OPL MAKE program (which is made in OPL!)
OPL - Source code file
Here is an example of the language:
Code:
include "file20" # OIL extension automatically assumed if not written
include "strings"
define byte First
array byte String1 # This is how STRINGs are used in OPL
"This is a string$"
stop
array byte String2 5
array byte Correct & "Correct$" & stop
First = 10
loop First
strPrint $String1
strHex First, $String2 & strPrint $String2 # & is line separator
stop
if First = 0 & strPrint $Correct & stop
url=http://www.google.com/search?q=%22Ain%27t+I+weird%3F%22&start=10]Ain't I Weird?[/url]