Spectrum on Linux

Today i will talk about spectrum development on Red Hat and Fedora 30.

First of all I will teach how to install the software through the repositories.

<code>

sudo dnf install z80asm

</code>

Next step will be to install the spectrum Unix emulator called fuse-emulator-gtk.

<code>

sudo dnf install fuse-emulator

</code>

With this way we can now, code basic for spectrum or z80 assembly.

If you have old spectrum computer coding books you can now code it.

create a directory development folder called projects/spectrum

Before this on your home directory:

<code>

vi ~/.vimrc

syntax on

:wq

</code>

<code>

mkdir -p ~/projects/spectrum

touch ~/projects/spectrum/hello.asm

vi ~/projects/spectrum/hello.asm

write this code or copy paste it:

;Sample print at program

ORG 32768

LD A,2

CALL 5633

LD DE,string

LD BC,eostring-string

CALL 8252

RET

string: DEFB 22,0,11,”Hello World”

eostring: equ $

For compilation a asm file from z80 spectrum code type this:

<code>

z80asm -o hello.bin hello.asm

</code>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

sixteen − eleven =

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.