13 unsigned char *framebuf, *vmem = (unsigned char*)0xa0000;
31 if(!(framebuf = malloc(320 * 200))) {
32 printf("failed to allocate framebuffer\n");
36 if(game_init() == -1) {
41 if((key = kb_getkey()) >= 0) {
42 game_keyboard(key, 1);
50 cleanup_intr(); /* also disables interrupts */
55 unsigned long game_getmsec(void)
57 return TICKS_TO_MSEC(nticks);
65 void game_swap_buffers(void)
67 memcpy(vmem, framebuf, 64000);