Dotneteer / spectnetide

ZX Spectrum IDE with Visual Studio 2017 and 2019 integration
MIT License
206 stars 27 forks source link

[v2p2] importing zxbas project does not run #167

Closed Ultrahead closed 4 years ago

Ultrahead commented 4 years ago

After importing this project to SpectNetIDE 2 preview (changing all the files from .bas to .zxbas and ditto in code):

http://www.alessandrogrussu.it/Adlunam.html

... nothing happens when you compile and run the game (ad10.zxbas file)

Dotneteer commented 4 years ago

Hi @Ultrahead, I will check it soon.

Dotneteer commented 4 years ago

@Ultrahead, thanks for reporting this error. The AdLunam project is a very good one to test ZX BASIC integration, as it is complex, and using many ZX BASIC features. I identified a number of issues (probably just the surface) that I need to handle in SpectNetIDE:

I try to process this long feature queue still this year...

Dotneteer commented 4 years ago

I managed to run the AdLunam project within SpectNetIDE. I will carry out the necessary changes and release them in Preview 4.

Dotneteer commented 4 years ago

@Ultrahead, the fix for the AdLunam project released in Preview 4.

A new SpectNetIDE feature allows you to add command line options to the main file of a ZX BASIC program. Accordingly, to make AdLunam work, you should add this top comment to the ad10.zxbas file:

REM @options --array-base=1 --string-base=1 -O3 -H 2100 -S 24600

You can find more details about compilation options here: https://dotneteer.github.io/spectnetide/getting-started/use-zx-basic#option-comments

Please note, the compilation takes about 2 minutes by the ZXB compiler. Then, SpectNetIDE adds about two seconds to compile the output .z80asm file to machine code.

Ultrahead commented 4 years ago

Great! Works like a charm ...