This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log
In trying to blanket copy a block of the Spectrum's ROM using PEEK$
it turns out that in using PEEK$
the ROM isn't actually available to be copied.
This was the code:
; system font position @ 15616 / 0x3D00
%b=%15616
; using string peek because it can read variable length
f$= PEEK$ (%b,768)
; poke the contents into a new location
POKE 64000,f$
; this should have printed the '!' character
PRINT PEEK 64008
This doesn't work because when you use PEEK$ a different ROM is paged in and the memory map changes. So you’ll never be able to do it like this. Indeed this is true for all new NextBASIC routines.
Originally published on Remy Sharp's b:log
This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log

remy sharp's b:log | Sciencx (2020-08-31T19:33:06+00:00) NextBASIC new routines switch out the “original” ROM [til/spectrum]. Retrieved from https://www.scien.cx/2020/08/31/nextbasic-new-routines-switch-out-the-original-rom-til-spectrum/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.