CPCWiki forum

General Category => NC100, NC200, PCW, PDA600 - the rest of the Family! => Topic started by: Baracus on 01:50, 02 July 22

Title: convert NC100 basic code to stand alone apps?
Post by: Baracus on 01:50, 02 July 22
This may or may be not worth at all, but I was wondering if there was any compiler for basic code for the Nc100.

On Dos there were some basic compilers that would produce an exe; which would make the code run faster than while running in basic and be standalone. Is this something doable with the NC100 or is not even worth, and it is better to just use basic as is or directly ASM?
Title: Re: convert NC100 basic code to stand alone apps?
Post by: Jasmin on 11:13, 18 October 22
The NC series use BBC Basic. Sadly there's no Z80 compilers for it - a real shame as it's a great language and has a CP/M Z80 implementation too, which would be lovely to have a compiler for.
Title: Re: convert NC100 basic code to stand alone apps?
Post by: Baracus on 03:51, 19 October 22
Is there a tutorial about how to write ASM for the NC100? The manual just mention that the basic is the same as BBC, so it can use ASM mixed up with basic, but offer no real examples.

Running basic programs as way to run ASM applications would be an alternative; although I heard that you can actually output a bin file somehow from basic, if you write your application in ASM.

Problem is, nobody seems to have any sort of link or tutorial that show how this is done
Title: Re: convert NC100 basic code to stand alone apps?
Post by: pelrun on 06:38, 19 October 22
There's the official manual for BBC BASIC (Z80) here: https://www.bbcbasic.co.uk/bbcbasic/mancpm/index.html

It's specifically for the CP/M version, but most of it will be directly applicable.

Also read http://basic.hopto.org/basic/manual/Amstrad%20NC100%20Advanced%20User%20Guide.pdf

That book has a lot of example programs with integrated assembler sections and a fairly detailed description of how to use the assembler itself and interface with the NC100 firmware.

Working with binaries is almost certainly more trouble than it's worth; it's a lot easier to store everything as basic programs and assemble on program start.
Title: Re: convert NC100 basic code to stand alone apps?
Post by: jimmyd on 07:18, 19 October 22
A lot of the information from the Advanced User Guide is also available here:
https://jnz.dk/nc100/
Title: Re: convert NC100 basic code to stand alone apps?
Post by: Baracus on 00:39, 20 October 22
Thanks to both; the BBC basic manual is the one I was using; it has few examples but not much more than that, so I tried to extrapolate info from it and failed to get the "skeleton" for actually running an application that embed ASM in it.

Will check the advanced user guide; and that link from Jimmyd is also very useful; lots of info compressed for easy digestion :)
Title: Re: convert NC100 basic code to stand alone apps?
Post by: asertus on 11:25, 07 August 23
Hi, sorry for asking in this old thread. I go a working NC100 but I know almost nothing about this computer. My question is, how can I send data/programs to the computer? I mean, is there a known "gotek", device, etc.., or usb->serial cable or similar to do this?

Thanks
Title: Re: convert NC100 basic code to stand alone apps?
Post by: jimmyd on 14:57, 07 August 23
A couple of years ago I wrote an article for a new Amstrad computer magazine about connectivity for the NC100.
Unfortunately it seems that the magazine has died as well as the URL where it could have been downloaded.

I have attached my article here, it may help you out :)
Title: Re: convert NC100 basic code to stand alone apps?
Post by: asertus on 15:54, 07 August 23
Thanks a lot.. I will read this evening..
Powered by SMFPacks Menu Editor Mod