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

Author: jgh@arcade.demon.co.uk

Date: 13/04/2008

Subject: Re: Clock runs out at 1 p.m.

 

> Message-ID: <ftbnrd+5vas@...>

"equin0x80" wrote:
> Today I tried it, and the game reset to the title screen (without any=20
> explanation or "game over") at 1 p.m. I was a bit surprised, because=20

That strange 1pm that is one hour after midnight ?!?

> you're supposed to have until midnight, so it seems that you actually=20
> get less than half the advertised time.
>
> So, er, what's that all about? :) Is it a known bug?

Yes, it's a well-known bug, the same bug that causes the clock to
claim the time to be 'am' all the way to just before 1pm! [1]

The clock update code at around &8A00-ish increments each digit of
the clock, moving up to the next digit if it overflows. The am/pm
counter is only updated when 12:xx overflows to 13:xx. The first
time it does this 12:59am (!) ticks over to 1:00pm, and then
12:59pm ticks over to restart the game. Yes, I would have expected
a jump to GAMEOVER, but instead it jumps to ENTERGAME instead.

[1]
In the real world, time goes:
7:00am ... 11:59am 12:00pm 1:00pm ... 11:59pm 12:00am 12:59am 1:00am

In Miner Willy's world it goes:
7:00am ... 11:59am 12:00am 1:00pm ... 11:59pm 12:00pm 12:59pm

--
J.G.Harston - jgh@... - mdfs.net/User/JGH
HADFS System Resources - http://mdfs.net/Software/HADFS

 

 

arrowleft
arrowright