Questions tagged [zxspectrum]

The Sinclair ZX Spectrum was a popular 8-bit British microcomputer based on the Zilog Z80 CPU, which sold over five million units in the 1980s and was imitated by dozens of unofficial clones.

An HTML version of the original ZX Spectrum BASIC Manual is available here: http://www.worldofspectrum.org/ZXBasicManual/

See also:

18 questions
27
votes
14 answers

What are your favourite ZX Spectrum development tools?

What are your favourite assemblers, compilers, environments, interpreters for the good old ZX Spectrum?
Umber Ferrule
  • 3,358
  • 6
  • 35
  • 38
15
votes
4 answers

How to mimic logical XOR in ZX Spectrum basic?

Sometimes when coding in ZX Spectrum Basic I need to evaluate logical expressions that are formed by two operands and a logical xor like this: IF (left operand) xor (right operand) THEN Since ZX Basic does only know NOT, OR and AND I have to resort…
yacc
  • 2,915
  • 4
  • 19
  • 33
12
votes
5 answers

POKE in ZX Spectrum

I'm playing with an old ZX Spectrum 48k and I'm wondering how exactly it is possible to enter POKE codes. You load a game with a tape - then somehow break out of the program, type in the POKE statements, and start running the program again? I've…
simmons
  • 835
  • 1
  • 9
  • 17
3
votes
1 answer

ZX spectrum loading sound

Apologies for the vagueness of this question; I'm remembering back to the early 1980s! When I loaded programs from cassette tape into my 48k ZX Spectrum, the sound (and bar animation) was quite distinctive, and followed a fairly standard pattern for…
Peter
  • 287
  • 2
  • 6
3
votes
3 answers

ZX Spectrum AY-3-8912 playback in XNA Game Studio

Are there any libraries, pieces of code or suchlike that'll let me play ZX Spectrum .ay files in my XNA Game Studio games?
Piku
  • 3,526
  • 6
  • 35
  • 38
2
votes
3 answers

ZX Spin emulator, built-in assembly errors

I'm having problems understanding how to get an assembly file to run inside the ZX Spin emulator using the built-in assembler. I'm able to assemble my program but it seems to crash each time I attempt to run the assembled object code. I cannot find…
Gary Paluk
  • 1,038
  • 1
  • 14
  • 28
1
vote
1 answer

How to read elements from a DEFB sequentially in Z80 Assembly language and then use the value retrieved at each iteration

I've been learning Z80 Assembly language, and I'm a bit stumped with this. The values in the DEFB represent musical pitches. The program creates a sequential loop, using the A register, starting at 0, and it should read the nth element of the DEFB,…
Davy C
  • 639
  • 5
  • 16
1
vote
1 answer

Z80 Assembly for ZX Spectrum how to use a variable as PRINT AT coordinates

I've been messing around with the ZX Spin emulator and Assembly language. I used to write BASIC games back in the 80s, and always wanted to learn machine code, but too stupid as a 12 year old kid. I've been putting this simple code together that…
Davy C
  • 639
  • 5
  • 16
1
vote
1 answer

Drawing two character sprite in Z80 assembly

Following on from First Steps in Z80 Assembly Language I'm trying to move a two high character sprite in assembler. ORG 30000 ; Origin LASTK EQU 23560 ; last key press (system variable) PRINT EQU 8252 …
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
1
vote
1 answer

sccz80:"../lib/main.c" L:16 Warning:#14:Expected ',' sccz80:"../lib/main.c" L:16 Error:#28:Segmentation fault

I'm getting the following error on compilation of the code below: sccz80:"../lib/main.c" L:16 Warning:#14:Expected ',' sccz80:"../lib/main.c" L:16 Error:#28:Segmentation fault /* * A test game of Pong using the Z88dk */ #include…
A. Jetman
  • 67
  • 1
  • 5
1
vote
5 answers

ZX Spectrum - Issue with RS232 (Serial Port)

I recently got hold of a ZX Spectrum +3 and am trying to get RS232 working with the spectrum. I’ve built a cable (‘BT’ style connector <-> DB9 serial) following the pin out of the cable (Spectrum 128 RS232 data cable) here. The other end of the…
cobbm
  • 11
  • 3
1
vote
1 answer

Keyboard map Sinclair Spectrum ZX +2 on Teensy 3.2

I'm converting a Sinclair Spectrum 128 ZX +2 into a Raspberry Pi-powered computer and I'm using a Teensy 3.2 USB Development Board for mapping the original keyboard with the original membrane and get a normal USB keyboard. I'm not planning to…
Kappe
  • 9,217
  • 2
  • 29
  • 41
1
vote
3 answers

How can you find the electron gun/scanline position?

How can I find the position of the electron gun (i.e. actively changing pixel/scanline) on the ZX Spectrum? Different Spectrum models have slightly different timings. If this is not possible, is there a way of waiting for some form of vertical sync…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
0 answers

Porting from Santaka ZX Spectrum clone code to Z80 to compile a Santaka game - how to translate to this dialect?

This is a continuation of https://retrocomputing.stackexchange.com/questions/27077 I am trying to port my father's game for the Z80 compiler. I have managed to read up on the tutorials and other resources (like other BASIC programming examples) to…
Sir Muffington
  • 309
  • 1
  • 8
  • 14
0
votes
1 answer

Rapid screen drawing in Z80 Assembler + BASIC on emulator

Following the instruction of Chapter 10 of First Steps in Z80 Assembly Language by Darryl Sloan: Firstly, we fill the screen with a BASIC program of random colored "hello" messages. The assembler code, as I understand it, is then able to copy that…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
1
2