kosarev / z80

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

Try to avoid using switches #17

Open kosarev opened 3 years ago

kosarev commented 3 years ago

As mentioned in #16, working on #13 revealed a problem with the standard state module utilising switches where it seems we could use indexed accesses for better performance, e.g., in on_get_reg().