Qbasicnews.com
December 11, 2019, 12:46:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Try this on for size  (Read 6274 times)
Pc72
Forum Regular
**
Posts: 101



WWW
« Reply #15 on: January 16, 2004, 05:53:24 AM »

Sorry! I have mislead you with my signature!!!  Please note, that the "now" in my signature should *NOT* be "now".  It's "not"!

I just noticed my typo, and it seems, that I have made a great mistake there!

Note the signature below, with the typo corrected:
Logged

url=http://www.google.com/search?q=%22Ain%27t+I+weird%3F%22&start=10]Ain't I Weird?[/url]
BinarySHOCK
Forum Regular
**
Posts: 117



WWW
« Reply #16 on: January 16, 2004, 06:03:05 AM »

OPL seems very interesting kinda like basic mixed with asm, it outputs ASM correct? what assembler is the code made for?

Anyways i like the language alot, is there any tutorials about it yet? if there is send em my way (binaryshock@netzero.com) or post a
link i might make a few proggies with it.
Logged

very F***ing song remains the same
To everyone who sucks-up for the fame
Out of strength you know we speak the truth
Every trend that dies is living proof

MasterMinds Software
Pc72
Forum Regular
**
Posts: 101



WWW
OPL
« Reply #17 on: January 16, 2004, 07:49:09 AM »

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
Logged

url=http://www.google.com/search?q=%22Ain%27t+I+weird%3F%22&start=10]Ain't I Weird?[/url]
BinarySHOCK
Forum Regular
**
Posts: 117



WWW
« Reply #18 on: January 16, 2004, 09:02:38 AM »

Hey Pc72, i added a few more commands to MINI and was able to make a file encrypter in it Tongue pretty limited tho, files can't be >4096 bytes (due to stack size that MINI uses), and the encryptions weak but hell whatta expect from a esoteric language?

anyway here's the code for it

Code:

Oinfile.dat; (R^) C Ooutfile.dat; vvv(v+32S-32) C


If you'd like to check out the interpreter just pm me.
I included a few sample programs and a tutorial in the source.
Altho it doesn't cover the file commands yet.
Logged

very F***ing song remains the same
To everyone who sucks-up for the fame
Out of strength you know we speak the truth
Every trend that dies is living proof

MasterMinds Software
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!