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 */
60 void game_swap_buffers(void)
62 memcpy(vmem, framebuf, 64000);