ZMakeBas, basic tokenizer

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
antoniovillena
Posts: 23
Joined: Fri Aug 15, 2014 5:48 pm

ZMakeBas, basic tokenizer

Post by antoniovillena »

I have adapted a ZX Spectrum utility to be dual machine, so now you can write your own Basic listings for ZX81 in ASCII with a simple text editor. The tool compiled with some examples is here:

http://zonadepruebas.com/download/file.php?id=2937

If you want to modify it, here is the source code:

http://sourceforge.net/p/emuscriptoria/ ... ZMakeBas.c
User avatar
iturbez
Posts: 154
Joined: Fri Dec 25, 2009 1:06 pm
Location: Spain

Re: ZMakeBas, basic tokenizer

Post by iturbez »

Hi, Antonio.
This link seems to be incorrect... This links to a program called "soliatrio"...
If you can, please, link to the real ZMakeBas tokenizer, I would like to test it.
Thanks in advance.

---This text is in Spanish. I know Antonio from other Spanish forums----
Hola, Antonio.
Te conozco de otros foros españoles...
El enlace que has puesto trae el programa solitario, en lugar de ZMakeBas.
Corrige, por favor, el enlace para poder probar el programa correcto.
Gracias, y un saludo.
antoniovillena
Posts: 23
Joined: Fri Aug 15, 2014 5:48 pm

Re: ZMakeBas, basic tokenizer

Post by antoniovillena »

Hi iturbez

If you observe into the zip there is a file called ZMakeBas.exe. My intention was to include the executable with other files (some .bas and one .bat) to test the tool. But I recommend the second link with the C source and compile yourself, it works on all platforms and you can trace the changes from the original tool (that was written by Russell Marks).
User avatar
iturbez
Posts: 154
Joined: Fri Dec 25, 2009 1:06 pm
Location: Spain

Re: ZMakeBas, basic tokenizer

Post by iturbez »

Thanks, Antonio.
User avatar
XavSnap
Posts: 1941
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: ZMakeBas, basic tokenizer

Post by XavSnap »

Hi,
exe ok on a W7 32b. (W32)...
But, try to create a "T81" zx81's file, instead of a "TAP" Spectrum tape file !
:oops:
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
antoniovillena
Posts: 23
Joined: Fri Aug 15, 2014 5:48 pm

Re: ZMakeBas, basic tokenizer

Post by antoniovillena »

XavSnap wrote:Hi,
exe ok on a W7 32b. (W32)...
But, try to create a "T81" zx81's file, instead of a "TAP" Spectrum tape file !
:oops:
I'm sorry, snapshots are not supported. Only binary and tape outputs are allowed. Default is tape format (ZX Spectrum), put -r for binary output, and/or -p for ZX81 format (.p file). Or write "ZMakeBas -h" to show the help screen.

Code: Select all

zmakebas - public domain by Russell Marks.

usage: zmakebas [-hplr] [-a line] [-i incr] [-n speccy_filename]
                [-o output_file] [-s line] [input_file]

        -h      give this usage help.
        -p      output .p instead (set ZX81 mode).
        -l      use labels rather than line numbers.
        -r      output raw headerless file (default is .tap/.p file).
        -a      set auto-start line of basic file (default none).
        -i      in labels mode, set line number incr. (default 2).
        -n      set Spectrum filename (to be given in tape header).
        -o      specify output file (default `out.tap').
        -s      in labels mode, set starting line number (default 10).
In the .zip there is a .bat with examples of ZX Spectrum and ZX81 .bas sources.
Post Reply