credit->credit += deposit;
- toggle_videomode();
- cprintf("%d Cent eingezahlt fuer %s.\r\nRestguthaben: %d\r\n", deposit,
- credit->nickname, credit->credit);
- sprintf(print_buffer,
- "%c%s - %d Cent eingezahlt fuer %s. Restguthaben: %d Cent\r", 17,
- time, deposit, credit->nickname, credit->credit);
- cprintf("%s", print_buffer);
- toggle_videomode();
print_the_buffer();
cprintf("\r\nEinzahlung durchgefuehrt, druecke RETURN...\r\n");
input = get_input();
- toggle_videomode();
- clrscr();
- toggle_videomode();
}
static void new_credit(void) {
return 1;
}
- toggle_videomode();
- cprintf("\r\n *** VERKAUF ***\r\n\r\n");
- cprintf("%dx %s", einheiten, name);
- toggle_videomode();
-
cprintf("\r\nAuf ein Guthaben kaufen? Wenn ja, Nickname eingeben:\r\n");
{
BYTE i;
}
}
}
- if (*nickname != '\0') {
- toggle_videomode();
- cprintf(" fuer %s\r\n", nickname);
- toggle_videomode();
- }
if (*nickname != '\0' && *nickname != 32) {
nickname_len = strlen(nickname);
cprintf("\r\nVerbleibendes Guthaben fuer %s: %s. Druecke RETURN...\r\n",
nickname, rest);
textcolor(TC_LIGHT_GRAY);
- toggle_videomode();
- cprintf("\r\nDein Guthaben betraegt noch %s.\r\n", rest);
- toggle_videomode();
get_input();
matches++;
} else {
char *time;
if (VIDEOMODE == 40)
- toggle_videomode();
+ videomode(80);
+
+ /* clock CPU at double the speed (a whopping 2 Mhz!) */
+ fast();
+
clrscr();
/* Allocate logging buffer memory */
/* Set time initially, c128 doesn't know it */
set_time_interactive();
- POKE(216, 255);
+ /* disable interrupt driven VIC screen editor */
+ POKE(0xD8, 255);
/* Load configuration */
load_config();
/* if the input starts with a digit, we will interpret it as a number
* for the item to be sold */
buy_stock(atoi(c));
- toggle_videomode();
- clrscr();
- toggle_videomode();
} else if (*c == 'f') {
buy_custom();
- toggle_videomode();
- clrscr();
- toggle_videomode();
} else if (*c == 's') {
save_items();
save_credits();