Skip to content

Instantly share code, notes, and snippets.

@kusma
Created January 20, 2011 22:23
Show Gist options
  • Save kusma/788809 to your computer and use it in GitHub Desktop.
Save kusma/788809 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdint.h>
#include <mint/falcon.h>
unsigned char buf[320 * 200];
int main(int argc, char *argv[])
{
void *logbase = Logbase(), *physbase = Physbase();
uint16_t old_mode = VsetMode(-1);
VsetScreen(logbase, buf, 3, BPS8 | COL40 | VGA | PAL | VERTFLAG);
VsetScreen(logbase, physbase, 3, old_mode);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment