From da4480b81520edd4f2987c5e12ea8a8de0357199 Mon Sep 17 00:00:00 2001 From: wodowiesel Date: Fri, 28 Jun 2024 20:10:58 +0200 Subject: [PATCH] experimental cs2 func impl in loop --- .../GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel.ino | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/code-arduino/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel.ino b/code-arduino/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel.ino index 64a2a11..a1235f7 100644 --- a/code-arduino/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel.ino +++ b/code-arduino/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel/GBCartRead_v1_8_Rev1.3_Arduino_WodoWiesel.ino @@ -331,17 +331,23 @@ void loop() { } } + /// dump ram special + cs2_dumpsave(); + // Disable RAM write_byte(0x0000, 0x00); - Serial.flush(); // Flush any serial data that wasn't processed + + // Flush any serial data that wasn't processed + Serial.flush(); } } rd_wr_mreq_off(); ///Serial.println("Loop done \n"); - } - +} +//--- End loop! +// func definitions uint8_t read_byte(uint16_t address) { shiftout_address(address); // Shift out address