gianlucag / mos6502

A fast & simple MOS 6502 CPU emulator written in C++
MIT License
286 stars 56 forks source link

access to uninitialized status bits #9

Open wattyka opened 4 years ago

wattyka commented 4 years ago

The "status" member has uninitialized bits. When I noticed that a static instance of mos6502 would work as expected but one on the stack or heap would show subtle differences in program execution (static data=bss), it pointed me to the bug.

Otherwise, this is a very nice and efficient piece of code. Using it for my second project. I love it!

gianlucag commented 4 years ago

hello, thanks for raising the issue. Would you like to make a pull req with the fix?