Skip to content

Instantly share code, notes, and snippets.

@NunoLava1998
Last active February 25, 2017 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NunoLava1998/d847ba9e23e48dcd4cebe6a10994069e to your computer and use it in GitHub Desktop.
Save NunoLava1998/d847ba9e23e48dcd4cebe6a10994069e to your computer and use it in GitHub Desktop.
unsigned short int* buf = (unsigned short int *)0xB8000;
for (int y_format = 0; y_format < 25; y_format++) {
for (int x_format = 0; x_format < 80; x_format++) {
buf[y_format * 80 + x_format] = buf[(y_format + 1) * 80 + x_format];
}
}
y = 24;
x = 0;
update_vptr(x, y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment