Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/famicom-dumper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-12-02 19:28:02 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-12-02 19:28:37 +0300
commit3a84b75c0a4c58ab7ecfc98572e11b0524e733dc (patch)
tree127dd17c64cbd5784f1d6a1b1cbb67c1366f90f4
parent50e46e2cd1a06cacd93068fba461895204c123d0 (diff)
More FDS stuff
-rw-r--r--dumper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dumper.c b/dumper.c
index 8e323c7..2500528 100644
--- a/dumper.c
+++ b/dumper.c
@@ -602,10 +602,9 @@ static void fds_transfer(uint8_t block_read_start, uint8_t block_read_count, uin
comm_start(COMMAND_FDS_DISK_NOT_INSERTED, 0);
return;
}
+ // battery test
write_prg_byte(FDS_CONTROL, FDS_CONTROL_READ | FDS_CONTROL_MOTOR_ON); // monor on, unreset
- DELAY_KILO_CLOCK(268500 / 1000); // ~268500 cycles
- write_prg_byte(FDS_CONTROL, FDS_CONTROL_READ | FDS_MOTOR_OFF); // reset
- write_prg_byte(FDS_CONTROL, FDS_CONTROL_READ | FDS_CONTROL_MOTOR_ON); // monor on, unreset
+ _delay_ms(100);
if ((read_prg_byte(FDS_EXT_READ) & 0x80) == 0)
{
// battery low