 }
 
 void write2RAM(unsigned int address, byte data) {
-  digitalWrite(OEDATA, LOW);
-  digitalWrite(OEADDRESS, LOW);
+  digitalWrite(OESHIFT, LOW);
   digitalWrite(WESRAM, HIGH);
   shiftout(address, data);
   digitalWrite(WESRAM, LOW);


  // Write ROM file to SRAM
  if (romFile) {
    enableSRAM();
    unsigned romSize = static_cast<unsigned>(romFile.size());
    if (romSize <= MAX_ROM_SIZE) {
      for (unsigned i = 0; i < romSize; i++) {

  delay(blinkTimeLow);
}

/*void enableSRAM() {
  pinMode(CE1SRAM, OUTPUT);
  pinMode(CE2SRAM, OUTPUT);
  digitalWrite(CE1SRAM, LOW);
  digitalWrite(CE2SRAM, HIGH);
}*/

void disableVCBus() {
  digitalWrite(WESRAM, HIGH);
  digitalWrite(OESHIFT, LOW);
  digitalWrite(OEVCBUS, HIGH);
}

void enableVCBus() {
  digitalWrite(WESRAM, HIGH);
  digitalWrite(OESHIFT, HIGH);
  digitalWrite(OEVCBUS, LOW);
  delay(100);
  // handover R/W control to VC4000
