mirror of
https://github.com/garrettsworkshop/GWRAM.SYSTEM.git
synced 2024-06-19 21:29:30 +00:00
Release candidate 2
This commit is contained in:
parent
1981313dd5
commit
c9c153aea4
BIN
bin/ram2e140.dbg.po
Normal file
BIN
bin/ram2e140.dbg.po
Normal file
Binary file not shown.
BIN
bin/ram2e140.po
Normal file
BIN
bin/ram2e140.po
Normal file
Binary file not shown.
11
ram2e.c
11
ram2e.c
|
@ -211,10 +211,12 @@ static void set_nvm(char mask) {
|
||||||
|
|
||||||
static void menu(void)
|
static void menu(void)
|
||||||
{
|
{
|
||||||
|
uint8_t bankcount = ramworks_getsize();
|
||||||
gotoxy(5, 1);
|
gotoxy(5, 1);
|
||||||
cputs("-- RAM2E Capacity Settings --");
|
cputs("-- RAM2E Capacity Settings --");
|
||||||
gotoxy(4, 3);
|
if (bankcount < 2) { gotoxy(5, 3); }
|
||||||
printf("Current RAM2E capacity: %d kB", ramworks_getsize() * 64);
|
else { gotoxy(4, 3); }
|
||||||
|
printf("Current RAM2E capacity: %d kB", bankcount * 64);
|
||||||
|
|
||||||
gotoxy(1, 5);
|
gotoxy(1, 5);
|
||||||
cputs("Select desired memory capacity:");
|
cputs("Select desired memory capacity:");
|
||||||
|
@ -334,7 +336,8 @@ int main(void)
|
||||||
case '4': mask = 0x3F; break;
|
case '4': mask = 0x3F; break;
|
||||||
case '5': mask = 0x7F; break;
|
case '5': mask = 0x7F; break;
|
||||||
case 'R': {
|
case 'R': {
|
||||||
if (reset_count > 127) {
|
reset_count++;
|
||||||
|
if (reset_count >= 100) {
|
||||||
// Show message about saving.
|
// Show message about saving.
|
||||||
clrscr(); // Clear screen
|
clrscr(); // Clear screen
|
||||||
gotoxy(1, 8);
|
gotoxy(1, 8);
|
||||||
|
@ -352,7 +355,7 @@ int main(void)
|
||||||
gotoxy(1, 8);
|
gotoxy(1, 8);
|
||||||
cputs("RAM2E settings reset successfully.");
|
cputs("RAM2E settings reset successfully.");
|
||||||
goto end;
|
goto end;
|
||||||
} else { reset_count++; }
|
}
|
||||||
} default: continue;
|
} default: continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user