 }
 
 //Set the data bus to output or input
-// false => INPUT, true => OUTPUT 
+// false => INPUT, true => OUTPUT
 void setDataBusDir(bool dir) {
   for (int p = 2; p <=9; p++){
     pinMode(p, dir);

      setCtrlLines(serialReadBlocking());
    }
    break;
    
    // read a section of data from the cart
    case READSECTION:
    {


const int AddressLatchPin = 10;

const int snesReadPin = A1; //Cart pin 23 - aka /RD - Address bus read
const int snesWritePin = A2; //Cart pin 54 - aka /WR - Address bus write
const int snesCartPin = A3; //Cart pin 49 - aka /CS, /ROMSEL, /Cart - Goes low when reading ROM
const int snesResetPin = A4; //Cart pin 26 - SNES reset pin. Goes high when reading cart

typedef enum COMMANDS {
  CTRL,
