bugs found on eo

Emulator and emulator development specific topics
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: bugs found on eo

Post by dr beep »

It looks like my game POLICE PATROL isn't accepting keyinput anymore.

I have loaded multiple versions of the game, even version in a downloadlink that I have marked OK for distribution.
games.zip
(229.15 KiB) Downloaded 304 times
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: bugs found on eo

Post by dr beep »

Looks like all versions were corrupt somehow. Altered the code a bit.
Now working.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: bugs found on eo

Post by dr beep »

Is opcode 9 wrong in emulation?

I tried same code in EightyOne and on ZX Spin.

LD HL,#FAFF
LD BC,#501
ADD HL,BC

RET Z

In EightyOne the Z-flag is not set when result is #100000 (1 goes to C-flag, but HL becomes 0, thus Z is set)
bug_EO.png
olofsen
Posts: 189
Joined: Wed Jan 08, 2014 12:29 pm

Re: bugs found on eo

Post by olofsen »

Per design, the Z condition bit is not affected by ADD HL,BC...
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: bugs found on eo

Post by dr beep »

So it is a bug in ZX Spin.
Post Reply