o add support for multline screen printfs

This commit is contained in:
david
2009-06-02 16:08:45 +02:00
parent 6b89029105
commit 4ec2da3a5c
2 changed files with 7 additions and 6 deletions

View File

@@ -25,6 +25,10 @@ void _print_screen(word y, char *buffer){
l = strlen(buffer);
waitForVBlank();
for(i=0; i<32; i++) {
if (buffer[i] == '\n' ) {
y++;
continue;
}
if (i<l)
VRAMByteWrite((byte) (buffer[i]-32), (word) (0x4000+i+(y*0x20)));
else