 
   // 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++) {

#include <SD.h>
#include <SPI.h>

#define CLOCK          5     // SRCLK
#define LATCH          3     // RCLK
#define DATA           6     // SER

#define WESRAM         10
#define OESHIFT        2     // _G Shift Registers

#define OEVCBUS        7

#define SD_CS          4
#define FILENAME_SIZE  12    // 8.3 convention, see SD library doc.
#define MAX_ROM_SIZE   6144

#define LED            13

unsigned blinkTimeHigh = 500;
unsigned blinkTimeLow = 500;

char romName[FILENAME_SIZE + 1];
File romFile;

void setup() {
  pinMode(SD_CS, OUTPUT);

  digitalWrite(LED, LOW);
  delay(blinkTimeLow);
}

void disableVCBus() {
  digitalWrite(WESRAM, HIGH);
