Created
November 30, 2012 23:01
-
-
Save martindevans/4179326 to your computer and use it in GitHub Desktop.
C code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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