Using Z80 Assembly Language to change the border color on ZX Sinclair Spectrum computer (ZX Spin Emulator / Assembler).
Facebook Page (public):
https://patreon.com/Spriteworx
Private facebook group for Patreon subscribers:
& Digital Content (as it becomes available):
https://spriteworx.itch.io/
===========================
Z80 Assembly Source Program (Copy and paste this into the Z80 Assembler):
org 30000
MAIN ;Main program loop.
LD A, grn ;Color to set border.
CALL BORDER ;Call ROM routine to set border color.
RET ;Return to BASIC.
;********* VALUES **************
BORDER EQU 8859 ;ROM routine to set border color.
blk equ 0 ;Black.
blu equ 1 ;Blue.
red equ 2 ;Red.
mag equ 3 ;Magenta.
grn equ 4 ;Green.
cyn equ 5 ;Cyan.
yel equ 6 ;Yellow.
wht equ 7 ;White.