Jump to content
IGNORED

Basilynx - A BASIC interpreter for the Lynx


Nop90

Recommended Posts

Last weekend started this project using the EhBasic sources. My idea is to extend the language with some of the GFX commands from the Atari Basic and maybe a command to play ABC tunes.

 

Basilynx.png.39d44e2853672c6d21b95b34646126f4.png

 

I designed a 6x6 ascii font for this project, coded the text output code and at the moment I'm coding a Virtual Keyboard for the input.

 

Keyboard.png.fea1d7de488ea7cc478eb88793e68231.png

 

Last thing to add will be the possibility to load and save the programs using the LynxGD.

 

At some poiint I'll publish the WIP code on my github so to receive some help (if someone wants), for the moments I want to code alone to improve my ASM skills.

 

Don't expect I can go fast with this, with the new year just started my job requires a lot of time.

 

Edited by Nop90
  • Like 8
Link to comment
Share on other sites

What about using ZX-81 basic style input? If I remember correctly IF was one key, GOTO another and so on.

Perhaps the input could be like in Dracula.

window.jpeg.3ed917428e45cb898a803e5dbd9abe5c.jpeg

It could also be nice to have a good set of pre-defined sprites and pre-defined sounds that you could use.

SAVE / LOAD / RUN game from eeprom.

Perhaps studying C64 and friends would give a hint of what kind of features are required.

Link to comment
Share on other sites

A tangent to this, but perhaps interesting/useful -- a desktop hosted cross compiler? ie, a "LynxBASIC" that would compile to p-code which this interprets and/or directly to a LNX file/6502? IntyBASIC, Batari Basic, etc really opened up console development to lots of people for their respective platforms.

 

Link to comment
Share on other sites

Let me do a first working version, then everyone will be free to modify or add things to it. The EhBasic core shold be fully working, but without a way to input something it only waits forever.

 

So the priority is to add a basic virtual keyboard that in the furure can be expanded.

 

I don't want to add Suzy support in the BASIC instructions, only gfx primitives working on the framebuffer, but POKEing data in memory should be possible to do everything.

Link to comment
Share on other sites

19 minutes ago, bhall408 said:

a desktop hosted cross compiler?

A Basic compiler would be great, but I don't have the experience to do it.

 

Also a Basic interpreter would be impossible for me without EhBasic sources freely available for non commercial use.

Link to comment
Share on other sites

2 minutes ago, Nop90 said:

A Basic compiler would be great, but I don't have the experience to do it.

 

Also a Basic interpreter would be impossible for me without EhBasic sources freely available for non commercial use.

I was seriously thinking about threaded interpretive languages for creating a mini-compiler/interpreter.

 

Microsoft BASIC started as a threaded interpretive language. At the university I wrote an 800 byte os/compiler/interpreter for FORTH as a threaded interpretive language. The good thing is the the end code becomes just a list of pointers to RAM addresses.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...