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: 4820

Author: jgh@arcade.demon.co.uk

Date: 17/06/2005

Subject: Re: JSW myth: "POKE 35123,0 removes

 

> Message-ID: <d8nguq+6tqp@...>

andrewbroad <no_reply@yahoogroups.com> wrote:
> LD IX,240 ; offset of first guardian-instance
> ...
> LD L,(IX+0) ; get first byte of guardian-instance
> (i.e. index into Guardian-Class Table)
> RES 7,L ; knock out the MSB of L (only 128 guardian-classes)
> LD H,20 ; HL = 256*20 + L
> ADD HL,HL ; HL = 2*(256*20 + L)
> ADD HL,HL ; HL = 4*(256*20 + L)
> ADD HL,HL ; HL = 8*(256*20 + L) = 40960 + 8*L

So, a better POKE would be something like:

POKE 35118,46
POKE 35119,0

which replaced the RES 7,L with LD L,0 to force all guardians to
be guradian zero, which (assuming the guardian table has been set
up with guardian zero as a null entry) gives no guardians.

Or even:

POKE &91BE,201

to null out the entire guardian drawing routine.

--
J.G.Harston - jgh@... - mdfs.net/User/JGH
BBC BASIC for Windows and Internationalisation
See http://mdfs.net/Software/BBCBasic/Windows/ProgTips

 

 

arrowleft
arrowright