X11-BASIC

GFA BASIC-related articles in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2368
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

X11-BASIC

Postby christos » Thu Oct 09, 2014 2:09 pm

I'm placing this in the GFA BASIC section because the language is actually inspired from it. A while back there was a discussion with the author about backporting X11-BASIC to the ST. Apparently since August this has happened.

I didn't have time to test but from what I read it needs the VT52 emulator running. Not sure if it will work with another emulator but it would be cool to find out. Anyway if someone is willing to test you can download it from the X11-BASIC website.

X11 BASIC is available for Linux, Windows an assortment of other OSes and Android. So it's now possible to do Android development with an Atari! It should be fun!
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2324
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: X11-BASIC

Postby lp » Thu Oct 09, 2014 10:41 pm

I messed around with it. Toswin2 seems to work. I tried the demo.bas and it was terribly slow interpreted. At first I was not even sure it was running it was so slow and this was on aranym. 8O

User avatar
tenox
Captain Atari
Captain Atari
Posts: 362
Joined: Thu Apr 05, 2012 11:52 pm
Location: Sunnyvale, California
Contact:

Re: X11-BASIC

Postby tenox » Fri Oct 10, 2014 2:30 am

Wow this is fantastic. I've tried X11-Basic years ago but it looked little bit abandoned. But looking at the version history looks like a well maintained project. I will have to look in to it some more!

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2324
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: X11-BASIC

Postby lp » Sat Dec 20, 2014 9:25 pm

Ok, so the pure ASCII interpreter is slow as heck, so I wanted to try the byte-code virtual machine. It's suppose to be ~10 times faster.

The byte-code compiler seems to work:

Code: Select all

*************************************************************
*           X11-Basic bytecode compiler                     *
*                    by Markus Hoffmann 1997-2014 (c)       *
* V.1.23/1234 date:                       2014-07-02        *
*************************************************************

<-- demo.bas
MERGE: programbuffer=0x1be428c len=15725
Buffer at 0x1bf23cc
Compile ...
548     lines.
5       procedures.
1       labels.
45      variables.
 labels.... variables ...37     relocations.
--> b.b [Info:
  Size of   Text-Segment: 4152
  Size of roData-Segment: 1460
  Size of   Data-Segment: 0
  Size of    bss-Segment: 368
  Size of String-Segment: 248
  Size of Symbol-Segment: 1296 (108 symbols)
] done.
done.


Then I get this from the byte-code virtual machine (verbose mode):

Code: Select all

b.b loaded (7196 Bytes)
Bytecode header found (V.3412)
WARNING: This Bytecode was compiled for a different version ofX11-Basic.
 ERROR.
xbvm: could not run b.b.


It appears to suffer from some sort of Endianness issues as the version is stored in a word, but the bytes are swapped?
3412 <-> 1234 ?? :?

Anyone else get the same results?


Social Media

     

Return to “GFA BASIC”

Who is online

Users browsing this forum: No registered users and 1 guest