Skip to content

Set of tools that can be used for development for the ZX Spectrum Next computer

License

Notifications You must be signed in to change notification settings

Ultrahead/SpeccyNextTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPECCY NEXT TOOLS

The idea of this repository is to provide a set of tools that can be used for development for the ZX Spectrum Next computer.

Text to Basic ... and Back ...

This is a port of the commandline tool txt2bas created by Remy Sharp -which can be found in this repo as a Node.JS-based tool, which in turn is inspired by the .txt2bas dot command available on the ZX Spectrum Next.

The goal is not to replace such a great tool, but to provide a .NET alternative for basic +3DOS functionality that you can directly use, refactor partially or completely and or integrate into your own projects, if needed. In this case, the provided functionality converts plain text into tokenized (+3DOS basic) text that can be recognized by the Speccy Next. So why is the tool so limited? Because I only need, right now, to get an autoexec.bas file like this ...

In case you need the whole pack of features that the Node.JS app provides, please either follow the instructions in Remy's repo to install the tool and or use the web-based versions available here.

Additionally, here you will find a .NET console app to convert a +3DOS basic tokenized file into plain text, known as bas2txt.

Building Steps

Just browse to the tool that you want to use, download the the provided VS Solution of said app and compile it with Visual Studio 2022, Visual Studio Code, Rider, or any other IDE of your preference. Yes, it's that simple!

Eventually, I will be submitting compiled versions for the latest .NET version. Promise. But not now ...

Usage

Open the commandline, move to the folder where the txt2bas.exe is located, and use the following syntax:

txt2bas path/to/file.txt path/to/output.bas

If everything results ok, the app will produce the tokenized .bas file in the path you indicated with the choosen name.

Conversely, if you need to translate a .bas file into plain text, you can use bas2txt.exe as follows:

bas2txt path/to/file.bas path/to/output.txt

Again, if everything results ok, you will find the text file in the path you provided.

IMPORTANT: beforehand, you will have to properly install the version of the .NET Framework needed in order to run any of the apps.

Final Words ...

Thanks to:

  • Remy Sharp (for developing that wonderful toolset for the Speccy Next, ZX Tools!)
  • The developers of the NextZXOS (for providing the original tool in the OS and make the assembly source code public)
  • Juan Segura Duran, aka "Duefectu" (for maintaining ZX Basic Studio, DuefectuCorp, and his patience to all my questions)
  • José Rodriguez, aka "Boriel" (for providing such a beatiful and useful language original baptized as Boriel Basic, and his infinite patience to my crazy requests for the language)
  • Gemini (for providing assistance where needed; a note here: you will notice that each app stems from a single-file implementation located in Program.cs, well, it was easier to obtain results with Gemini this way for my goals; feel free to refactor it) (^)

This is very important to keep in mind: the code comes as is with no support. So, in case you want to modify it to suit your needs, go ahead, grab the code and have fun experimenting with it!

Enjoy .. 🍻

About

Set of tools that can be used for development for the ZX Spectrum Next computer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages