   uint8_t getop();
   void exec6502(int32_t tickcount);
   void reset6502();
+  void nmi6502();
+  void irq6502();
 
   void serout(uint8_t val) {
     if (val == 10) {

  Serial.begin (9600);
  Serial.println();

  reset6502();
}

void loop () {
  exec6502(100); //if timing is enabled, this value is in 6502 clock ticks. otherwise, simply instruction count.
  if (Serial.available()) {
    curkey = Serial.read() & 0x7F;
  }

#define UNDOCUMENTED

// set this to a proper value for your Arduino
//#define RAM_SIZE 1536 // Uno, mini or any other 328P
#define RAM_SIZE 6144 //Mega 2560
//#define RAM_SIZE 32768 //Due


#define NMI_pin 3
#define IRQ_pin 4
#define RESET_pin 5

uint8_t curkey = 0;

