Загрузка...

#44: Building a BASIC Dev Setup for the ZX Spectrum Next

Building a ZX Spectrum Next BASIC Dev Setup on a Windows PC:

1. Create folder structure:
C:\NextDev
SDCard
Project1
Bin
Src

2. Download a Spectrum Next image file (cspect-next-2gb.img) and unzip to the "SDCard" folder:
http://zxspectrumnext.online/cspect/

3. Copy the .rom files to the "bin" folder:
enNextZX.rom
enNxtmmc.rom

4. Download Cspect emulator and unzip to "bin" folder:
http://cspect.org/
(Open in incognito window to download)

5. Download and install openal sound driver:
https://www.openal.org/downloads/

6. Install VSCode:
https://code.visualstudio.com/Download

7. Install NextBASIC extension for VSCode:
(For syntax highlighting)

8. Create a "runcspect.bat" batch file to start Cspect in Spectrum Next mode and save in the "src" folder:
c:\NextDev\Project1\Bin\cspect.exe -w3 -zxnext -nextrom -tv -mmc=c:\NextDev\sdcard\cspect-next-2gb.img

9. Download hdfmonkey & extract the hdfmonkey.exe file to the "bin" folder:
https://uto.speccy.org/

10. Check out Remy Sharp's github page:
https://github.com/remy/txt2bas

11. Install node:
https://nodejs.org/en/

12. Npm install (Run in a command prompt window):
npm install --global txt2bas

13. Create "text2basic.bat" batch file and save it in the "src" folder:
txt2bas -i myproject.txt -o myproject.bas

14. Create "basic2text.bat" batch file and save it in the "src" folder.
bas2txt -i myproject.bas -o myproject.txt

15. Create a "myproject.txt" BASIC program (with line numbers) and save as .txt file in the "src" folder:
(Use VSCode or other editor of your choice)

16. Run "text2basic" batch file (from the src folder) to create the "myproject.bas" BASIC program file
(The "myproject.bas" file can be copied to an SD card and run on a real Spectrum Next or hdfmonkey can be used to copy it to the rom image for the Cspect emulator to be able to navigate to.)

17. Create a "monkey.bat" batch file to use hdfmonkey to copy the "myproject.bas" file to the Spectrum Next rom image. Save "monkey.bat" in the "src" folder.
C:\NextDev\Project1\bin\hdfmonkey put c:\NextDev\sdcard\cspect-next-2gb.img myproject.bas

18. Run the "monkey.bat" batch file to copy the "myproject.bas" program into the ZX Spectrum Next ROM image.
"myproject.bas" should now appear in the browse results in the Cspect emulator.

19. Run the "runCSpect.bat" batch file to open the Cspect emulator and then you can browse to your "myproject.bas" BASIC program.
c:\NextDev\Project1\Bin\cspect.exe -w3 -zxnext -nextrom -tv -mmc=c:\NextDev\sdcard\cspect-next-2gb.img

You should now be able to browse to "myproject.bas" from the menu browser in CSpect.

20. Create a combined "build.bat" batch file to combine all 3 batch files:
call text2basic.bat
call monkey.bat
call runcspect.bat

NOTE: "basic2text.bat" can be used to convert a BASIC program to a text file that can be edited in a text editor.

LINKS:
=====
Like and follow my free public Spriteworx Facebook Page:
https://www.facebook.com/gaming/Spriteworx

Patreon subscribers enjoy early-bird viewing and other rewards:
https://patreon.com/Spriteworx

Private facebook group with downloadable content for Patreon subscribers:
https://facebook.com/groups/spriteworx

Download Spriteworx Games & Digital Content (as it becomes available):
https://spriteworx.itch.io/

Видео #44: Building a BASIC Dev Setup for the ZX Spectrum Next канала Spriteworx
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять