BASIC questions from a newbie

The place for codemasters or beginners to talk about programming any language for the Spectrum.
Post Reply
LtCmdWilliams
Drutt
Posts: 2
Joined: Thu Apr 14, 2022 9:42 am
Location: Paris
Contact:

BASIC questions from a newbie

Post by LtCmdWilliams »

Hi!

I'm a former owner of ZX Spectrum+, with which I spent my childhood, and unfortunately, a few years ago I sold it, which I regret now. On the wave of my regret, I managed to repurchase ZX Spectrum on eBay! Now, back then I was writing some simple programs in Basic, and now I would like to return to the nice memories and play with it again, especially when I see that there is quite a big community, which creates something for it. I do not know if people have returned to the topic or if it was always like this. I would like to write something simple and maybe even share it.

In the beginning I have 2 questions for you:
1) What is the best environment for programming in BASIC, so that I could write in text mode and the result of my program could be immediately previewed on the Spectrum.
2) What program do you recommend to create images "loading screen"?
3) Is it worth familiarizing yourself with assembler (because I heard that you can also write in it), if so, are there any publications (in English or French) dedicated to Spectrum on the subject. Or maybe it is better to give up?
User avatar
R-Tape
Site Admin
Posts: 6407
Joined: Thu Nov 09, 2017 11:46 am

Re: BASIC questions from a newbie

Post by R-Tape »

Hello, Lieutenant Commander!
LtCmdWilliams wrote: Thu Apr 14, 2022 9:57 am 1) What is the best environment for programming in BASIC, so that I could write in text mode and the result of my program could be immediately previewed on the Spectrum.
BASIN is best for this. I like to do BASIC in the ZX-Spin emulator and save snapshots, but I'm just stuck in my ways.
https://sites.google.com/site/ulaplus/h ... -and-basin
2) What program do you recommend to create images "loading screen"?
ZX-Paintbrush is tailor made for the Speccy. The original site no longer exists, but Alessandro has preserved it here, and here is the direct link: http://www.alessandrogrussu.it/zx/ZX-Pa ... _Setup.zip
3) Is it worth familiarizing yourself with assembler (because I heard that you can also write in it), if so, are there any publications (in English or French) dedicated to Spectrum on the subject. Or maybe it is better to give up?
I'd start by playing about with BASIC for a bit. Even if you move on to asm, you'll still need it, and it gives you a starting understanding of the Speccy's memory and ROM. If you then want to move to assembly, I started with Big Jon's 30 minute machine code, and then Jonathan Cauldwell's How to write Spectrum Games, and I used ZX-Spin 0.666 which has a built in assembler (PDFs available in both those links).

Have fun :-)
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Re: BASIC questions from a newbie

Post by Jbizzel »

Boriel zx basic is a great place to consider going. It's powerful and you can use it to easily code basic and learn asm.

Another option is to get a spectrum next of clone. Then you can code in actual hardware:)
User avatar
WhatHoSnorkers
Manic Miner
Posts: 254
Joined: Tue Dec 10, 2019 3:22 pm

Re: BASIC questions from a newbie

Post by WhatHoSnorkers »

LtCmdWilliams wrote: Thu Apr 14, 2022 9:57 am Hi!

I'm a former owner of ZX Spectrum+, with which I spent my childhood, and unfortunately, a few years ago I sold it, which I regret now. On the wave of my regret, I managed to repurchase ZX Spectrum on eBay! Now, back then I was writing some simple programs in Basic, and now I would like to return to the nice memories and play with it again, especially when I see that there is quite a big community, which creates something for it. I do not know if people have returned to the topic or if it was always like this. I would like to write something simple and maybe even share it.

In the beginning I have 2 questions for you:
1) What is the best environment for programming in BASIC, so that I could write in text mode and the result of my program could be immediately previewed on the Spectrum.
128K BASIC mode is pretty good, as you don't have to memorise all the short cuts. And if you select Screen mode from the menu it behaviours more like the 48K.
LtCmdWilliams wrote: Thu Apr 14, 2022 9:57 am 2) What program do you recommend to create images "loading screen"?
ZX Paintbrush is great for digitising images. I then sometimes load them on to the Spectrum and then poke around with them. If you SAVE "" SCREEN$ you will lose the bottom two rows but there are ways around this.
LtCmdWilliams wrote: Thu Apr 14, 2022 9:57 am 3) Is it worth familiarizing yourself with assembler (because I heard that you can also write in it), if so, are there any publications (in English or French) dedicated to Spectrum on the subject. Or maybe it is better to give up?
BASIC is great to get started with. There are lots of options for languages on the ZX Spectrum, and that's without going in to the modern stuff. Machine Code is very powerful but sometimes making it work is tricky, and you need to do all the POKEing yourself, as the ZX Spectrum doesn't support the assembly language.

Don't give up! There are lots of options. Some modern BASICs will compile straight into machine code, the best of all worlds!
I have a little YouTube channel of nonsense
https://www.youtube.com/c/JamesOGradyWhatHoSnorkers
User avatar
Bedazzle
Manic Miner
Posts: 305
Joined: Sun Mar 24, 2019 9:03 am

Re: BASIC questions from a newbie

Post by Bedazzle »

WhatHoSnorkers wrote: Tue Apr 19, 2022 8:57 pm Machine Code is very powerful but sometimes making it work is tricky, and you need to do all the POKEing yourself, as the ZX Spectrum doesn't support the assembly language.
What? :/

https://spectrumcomputing.co.uk/entry/8 ... oft_Devpac
https://spectrumcomputing.co.uk/entry/9 ... ctrum/Zeus
https://spectrumcomputing.co.uk/entry/2 ... trum/ALASM
https://spectrumcomputing.co.uk/entry/2 ... ctrum/TASM
User avatar
1024MAK
Bugaboo
Posts: 3123
Joined: Wed Nov 15, 2017 2:52 pm
Location: Sunny Somerset in the U.K. in Europe

Re: BASIC questions from a newbie

Post by 1024MAK »

This emulator works in a browser http://torinak.com/qaop#128 :D

Mark
:!: Standby alert :!:
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :dance
Looking forward to summer later in the year.
User avatar
WhatHoSnorkers
Manic Miner
Posts: 254
Joined: Tue Dec 10, 2019 3:22 pm

Re: BASIC questions from a newbie

Post by WhatHoSnorkers »

Bedazzle wrote: Tue Apr 19, 2022 10:08 pm
WhatHoSnorkers wrote: Tue Apr 19, 2022 8:57 pm Machine Code is very powerful but sometimes making it work is tricky, and you need to do all the POKEing yourself, as the ZX Spectrum doesn't support the assembly language.
What? :/

https://spectrumcomputing.co.uk/entry/8 ... oft_Devpac
https://spectrumcomputing.co.uk/entry/9 ... ctrum/Zeus
https://spectrumcomputing.co.uk/entry/2 ... trum/ALASM
https://spectrumcomputing.co.uk/entry/2 ... ctrum/TASM
It's not built in, like the BBC Micro. I've typed in a BASIC Assembler and also a Disassembler. I've also typed in a Forth compiler and got it working. But it's not supported, it's an extra. Same with C, or compiled BASIC.
I have a little YouTube channel of nonsense
https://www.youtube.com/c/JamesOGradyWhatHoSnorkers
User avatar
WhatHoSnorkers
Manic Miner
Posts: 254
Joined: Tue Dec 10, 2019 3:22 pm

Re: BASIC questions from a newbie

Post by WhatHoSnorkers »

1024MAK wrote: Tue Apr 19, 2022 10:56 pm This emulator works in a browser http://torinak.com/qaop#128 :D

Mark
As a kid I had a +2 and programmed in 48K mode. And you don't get the shortcuts on the keyboard. 128K mode is really nice.
I have a little YouTube channel of nonsense
https://www.youtube.com/c/JamesOGradyWhatHoSnorkers
Post Reply