 
 #define ROMSIZE 2048
 
-const byte romImage[] PROGMEM = { 
+const byte romImage[] PROGMEM = {
 0x1f, 0x00, 0x20, 0x17, 0x06, 0x20, 0x0e, 0x47, 0xa3, 0xce, 0x7f, 0x80, 0x5a, 0x78, 0x17, 0x05,
 0xf6, 0x0e, 0x26, 0xca, 0xcd, 0x7e, 0x0a, 0x0f, 0x26, 0xca, 0xcd, 0x7e, 0x1a, 0xd9, 0x72, 0x17,
 0x20, 0xc3, 0xcf, 0x5f, 0x00, 0x5b, 0x7b, 0x92, 0xcc, 0x5e, 0xc9, 0xcc, 0x1f, 0x0f, 0x04, 0x02,

#define DATA  5    //SER

#define WR    2
#define OEDATA    A0  //_G DATA BUS
#define OEADDRESS A1  //_G ADDRESS BUS

#define OEVCBUS 6



 disableVCBus();
 enableSRAM();

 Serial.begin(9600);
 delay(100);

 Serial.println("writing data");
 enableSRAM();
 for (int i=0;i<ROMSIZE;i++) {
    write2RAM(i,pgm_read_byte(romImage+i));
 }
 disableSRAM();

 Serial.println("done");
 Serial.println("enable bus to VC4000");
 enableVCBus();
}

void loop() {
  digitalWrite(LED,HIGH);
  delay(300);
  digitalWrite(LED,LOW);
  delay(300);
}

void enableSRAM() {
