kosarev / z80

Fast and flexible Z80/i8080 emulator with C++ and Python APIs
MIT License
63 stars 10 forks source link

__a and __f point to same memory location in _machine.py:StateBase #46

Closed arpruss closed 2 years ago

arpruss commented 2 years ago

Code reads: self.__a = self.__af[0:1] and self.__f = self.__af[0:1]

The first [0:1] should be [1:2].

I fixed it in my recent PR, but wanted to document the bug officially.

kosarev commented 2 years ago

Fixed in #45. Thanks for reporting and fixing and it!