Skip to content

Z80-Retro/BASIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE

FYI - Soon after starting to look creating a BASIC interpreter, someone pointed out that Richard Russell open-sourced a release of BBC BASIC that can be easily assembled for the Retro. I cloned his repo here and expect to tinker with it for a while and the reassess the idea writing a new version from scratch.

See BBCBASIC.md for details on how to build it for the Retro/Nouveau!

BASIC

Yet another BASIC implementation

See the discord Z80-Retro! BASIC thread

Minimal must-have list for an proof of concept/alpha release (very likely to change)

  • support line-number style (unstructured)
  • list files and save and load files
  • peek / poke
  • ability to delete multiple lines
  • support for variables with longer names. Up to 8 chars?
  • values in decimal and hex with ability to print in hex too.
  • DATA and READ (uses an auto increment pointer good for loading graphics etc)
  • save in text/untokenised format
  • IN and OUT for IO access
  • Page at a time listing

Nice to have:

  • support structured style BASIC
  • save in tokenized and untokenised formats.
  • ideally some form of inline editor. Shouldn't have to retype the whole line every time I want to make an edit
  • graphics primitives and MODE to set the graphics mode
  • some form of editor. Especially if doing structured basic
  • baked in xmodem or other for pulling files over serial (maybe add xload and xsave commands that can do this?)

Other Implementations For Inspiration

After apple basic on the apple 3 I used qbasic on my dos PC. It had a cursed type interface and supported functions and sub / end sub routines. Structured. The thing had a full blown manual inside it making it easy to learn. I love the idea of a retro-basic. If it's in the other rom bank, The only hard to replicate thing is the filesystem. Serial is easy. The graphics features are already something that we do without ROM or CPM support.

Links to Useful DOCs

Manuals

About

Yet another BASIC implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published