Skip to content

Instantly share code, notes, and snippets.

@martindevans
Created November 30, 2012 23:01
Show Gist options
  • Save martindevans/4179326 to your computer and use it in GitHub Desktop.
Save martindevans/4179326 to your computer and use it in GitHub Desktop.
C code
// File: entry.c
// Version: 1.0.0
// Author: Martin
//
int* screen = 0x8000;
int main()
{
print("Hello");
}
void print(char* msg)
{
while (*msg != 0)
{
*screen = *msg + 0xf000;
msg++;
screen++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment