CPCWiki forum

General Category => Programming => Topic started by: jonesypeter on 12:52, 08 January 21

Title: Modern Text Editor Amstrad BASIC
Post by: jonesypeter on 12:52, 08 January 21
Hi,


There are various tools for the ZX Spectrum which allow you to type BASIC into the text editor of your choice, then create a TAP file to load into an emulator or a real Spectrum. Is there anything similar for the CPC?


Many thanks


Peter
Title: Re: Modern Text Editor Amstrad BASIC
Post by: Gryzor on 13:07, 08 January 21
Screw that, I want a CPC-themed text editor, period.
Title: Re: Modern Text Editor Amstrad BASIC
Post by: m_dr_m on 15:15, 08 January 21
At some point Drill was considering a basic BASIC IDE, in particular reusing Orgams Editor with all its features: fast navigation, go to definition + go back, next occurence of label/variable, smart search...
In a second step, adding labels (GOSUB compute_3d) shouldn't be too difficult.


If enough people show interest, it might motivate him!
Title: Re: Modern Text Editor Amstrad BASIC
Post by: jonesypeter on 14:46, 11 January 21
Thanks for the replies. I found that WinAPE has the option to Paste in plain text, so that solves my problem.
Title: Re: Modern Text Editor Amstrad BASIC
Post by: GUNHED on 22:26, 12 January 21
Most emulators have such a 'paste' feature.  :)
Title: Re: Modern Text Editor Amstrad BASIC
Post by: MiguelSky on 23:57, 13 January 21
Quote from: jonesypeter on 14:46, 11 January 21Thanks for the replies. I found that WinAPE has the option to Paste in plain text, so that solves my problem.
Trickier than this but quite faster is the ability of CPCE of loading an ASCII file with a BASIC listing inside as a tape file by using Options/Tape bypass selected. Then you can run it or save it easily to a cdt of dsk.


This option also lets you quickly save a BASIC program to a file (by using the SAVE"name",A of course). I use this feature to work with BASIC listings without waitings.
Title: Re: Modern Text Editor Amstrad BASIC
Post by: ronaldo on 14:03, 14 January 21
What I do particularly is:
Steps 2-4 are all automated in a script file. I edit my BASIC fail, save it and run the script: the emulator launches and I can see the result directly. This is my most comfortable setup for BASIC.

I have shown how I elaborate this setup in the series of vĂ­deos AmstradGameDev Challenge: BASIC vs C (https://www.youtube.com/watch?v=TFEnGYmOOLI&list=PLmxqg54iaXrhtRxS4-tRwG9HJd0h59uUh). Starting on the second video I show how to use the tools and elaborate the script for automatically generating CDT/DSK with the BASIC file and run the emulator.

We have shared everything in a Github repository (https://github.com/AmstradGameDevChallenge/BASICvsC-RPG). Fell free to use anything you like in there if you like the setup or parts of it.
Title: Re: Modern Text Editor Amstrad BASIC
Post by: jonesypeter on 17:08, 14 January 21
Hi @ronaldo (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1227)


Thank you, that looks excellent.  Unfortunately I don't speak any Spanish, but the videos do look very informative.


It would be great to have an English tutorial using z88dk
Title: Re: Modern Text Editor Amstrad BASIC
Post by: ronaldo on 19:06, 14 January 21
Yes, I know that many Amstrad users/developers do not speak Spanish. For that reason we decided to code in english. So, the code you can find in the Github repository is in English.

Also, you may try with translated subtitles. They are far from being perfect, but are an intermediate solution to the problem.

In any case, you may find the code we use and comment useful, even if you don't understand us speaking :) .

And, of course, you can ask me anything you need. As long as I have enough time, I will be here able to help if needed :) .

Note: In the same videos we also program in C using SDCC with CPCtelera ;) .
Powered by SMFPacks Menu Editor Mod