gianlucag / mos6502

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

add RunEternally() & remove unused #include <iostream> & remove using namespace std; #18

Closed ghost closed 1 year ago

ghost commented 1 year ago
  1. add RunEternally() to eliminate the worry that the emulation may stop on exhaustion of cycles. this is useful when emulating a program with a dead loop. e.g. WOZ Monitor.
  2. remove unused #include <iostream> & remove using namespace std; it's never used, and it's dangerous to write using namespaces in header files. Edit: I have added an Apple 1 example for my fork after opening this PR. I don't know that the commits commited after the PR are also included... You can merge only the first 2 commits if you don't like that example.