aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/GBA.ino
diff options
context:
space:
mode:
authorsanni <[email protected]>2017-11-24 21:36:33 +0100
committerGitHub <[email protected]>2017-11-24 21:36:33 +0100
commit8c6d0960fbb192b73b7fadf050ea1458572e17e7 (patch)
tree81713870ea7ab23bf26e432d2ec3101a19ab9535 /Cart_Reader/GBA.ino
parent76ae5c54081d4fc0cd23876a5fadc133315d776b (diff)
downloadcartreader-8c6d0960fbb192b73b7fadf050ea1458572e17e7.tar.gz
cartreader-8c6d0960fbb192b73b7fadf050ea1458572e17e7.zip
V30F: Fix writing MX29LV160
Reset pin needs to be connected to Reset of SNES slot.
Diffstat (limited to 'Cart_Reader/GBA.ino')
-rw-r--r--Cart_Reader/GBA.ino5
1 files changed, 4 insertions, 1 deletions
diff --git a/Cart_Reader/GBA.ino b/Cart_Reader/GBA.ino
index a5ec3a6..a66e810 100644
--- a/Cart_Reader/GBA.ino
+++ b/Cart_Reader/GBA.ino
@@ -893,9 +893,12 @@ void readROM_GBA() {
// Read rom
for (int myAddress = 0; myAddress < cartSize; myAddress += 512) {
+ // Blink led
+ if (myAddress % 16384 == 0)
+ PORTB ^= (1 << 4);
+
for (int currWord = 0; currWord < 512; currWord += 2) {
word tempWord = readWord_GBA(myAddress + currWord);
-
sdBuffer[currWord] = tempWord & 0xFF;
sdBuffer[currWord + 1] = (tempWord >> 8) & 0xFF;
}