Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Try this on for size
#18
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:

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]
Reply


Messages In This Thread
Try this on for size - by Pc72 - 01-15-2004, 12:00 PM
Try this on for size - by BinarySHOCK - 01-15-2004, 02:13 PM
Try this on for size - by KiZ - 01-15-2004, 04:31 PM
Try this on for size - by Neo - 01-15-2004, 05:42 PM
Try this on for size - by na_th_an - 01-15-2004, 08:50 PM
Try this on for size - by Zack - 01-15-2004, 09:07 PM
Try this on for size - by BinarySHOCK - 01-16-2004, 11:24 AM
Language in QB? - by Pc72 - 01-16-2004, 11:52 AM
Try this on for size - by BinarySHOCK - 01-16-2004, 11:56 AM
Regarding the encryptor - by Pc72 - 01-16-2004, 11:58 AM
Try this on for size - by BinarySHOCK - 01-16-2004, 12:32 PM
Try this on for size - by Diroga - 01-16-2004, 12:47 PM
Try this on for size - by BinarySHOCK - 01-16-2004, 12:49 PM
Artificial languages - by Pc72 - 01-16-2004, 01:50 PM
Try this on for size - by BinarySHOCK - 01-16-2004, 01:52 PM
Signature failed. - by Pc72 - 01-16-2004, 01:53 PM
Try this on for size - by BinarySHOCK - 01-16-2004, 02:03 PM
OPL - by Pc72 - 01-16-2004, 03:49 PM
Try this on for size - by BinarySHOCK - 01-16-2004, 05:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)