Resource centre for ZX Spectrum games
      using Manic Miner and Jet Set Willy game engines

 

Archive of the

Manic Miner & Jet Set Willy Yahoo! Group

messages

 

 

 

Message: 697

Author: john_elliott_uk

Date: 09/09/2000

Subject: Re: dynamic poke switching

 

< falling poke address' into location 85c6 (and what's the
h? hex?). i thought you could only poke a value of
up to 255 into one location? >>

Yes;
"h" stands for Hex.

To store an address
(which occupies two bytes) you split it up like
this:

LET x = (address - 256 * INT(address / 256))
LET y
= (address / 256)
POKE a, x
POKE a+1, y


With Hex, this becomes quite simple - for
the
address 8E34h, the value "x" is 34h and the value "y" is
8Eh.

<< how do i edit it?

>>

Well, when I started doing JSW128, my main computer was
a Spectrum +3 with a Multiface. So I could type
commands like this:

10 CLEAR 32767
20 LOAD
"RTIME.JS2" CODE 32768
30 PAUSE 0
40 SAVE "RTIME.JS2"
CODE 32768, 27689

and when it reached the PAUSE
0, hit the Red Button on the Multiface and use its
POKE-applying abilities.
These days I use various
home-brewed tools to achieve the same effect, including of
course JSWED itself; I wouldn't recommend their use for
a beginner. But the Multiface technique can be used
with Z80.EXE:

C:\>TAPCAT -N RTIME.TAP
RTIME.JS2
C:\>Z80 -ti RTIME.TAP

[once in Z80, load
"RTIME.JS2" from tape, and use the Multiface or BASIC to make
changes. Then save
as "NRTIME.JS2" to a new .TAP file
"NRTIME.TAP"].

C:\>TAPSPLIT NRTIME.TAP
C:\>DELETE
RTIME.JS2
C:\>RENAME NRTIME.JS2 RTIME.JS2

Alternatively, find a
good binary file editor - does anyone have any
suggestions?

 

 

arrowleft
arrowright