mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2025-08-05 08:24:22 +00:00
Better delay in key sample loop
This commit is contained in:
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
9
rdisk.c
9
rdisk.c
@@ -17,9 +17,12 @@ static void RDDecodeSettings(Ptr unmountEN, Ptr mountEN, Ptr ramEN, Ptr dbgEN, P
|
||||
|
||||
// Sample R and A keys repeatedly
|
||||
char r = 0, a = 0;
|
||||
for (long i = 0; i < 100000; i++) {
|
||||
r = r | RDiskIsRPressed();
|
||||
a = a | RDiskIsAPressed();
|
||||
long tmax = TickCount() + 60;
|
||||
for (long i = 0; i < 1000000; i++) {
|
||||
r |= RDiskIsRPressed();
|
||||
a |= RDiskIsAPressed();
|
||||
if (r && a) { break; }
|
||||
if (TickCount() > tmax) { break; }
|
||||
}
|
||||
|
||||
// Decode settings: unmount (don't boot), mount (after boot), RAM disk
|
||||
|
Reference in New Issue
Block a user