So I followed and coded the stuff in http://www.dreamincode.net/forums/topic ... ng-part-1/ and got the program to run. Apparently the series was discontinued, so I really don't have much of an understanding of what everything is doing here. I keep looking for a tutorial that runs along with this one, but I can't seem to find one.
I modified it what little I could, and managed to produce this:
By doing
But really, I was just trying to figure out how to get it to a new line.
Are there any tutorials that can pick up where this left of? Or can someone explain to me what all of these *((unsigned char*)0x2006) ='s mean?
I modified it what little I could, and managed to produce this:
By doing
Code:
int y = 0;
void write_string(char *str){
int z;
y++;
z = y*41;
*((unsigned char*)0x2006) = 0x20;
*((unsigned char*)0x2006) = z;
while(*str){
*((unsigned char*)0x2007) = *str;
str++;
}
}
void write_string(char *str){
int z;
y++;
z = y*41;
*((unsigned char*)0x2006) = 0x20;
*((unsigned char*)0x2006) = z;
while(*str){
*((unsigned char*)0x2007) = *str;
str++;
}
}
But really, I was just trying to figure out how to get it to a new line.
Are there any tutorials that can pick up where this left of? Or can someone explain to me what all of these *((unsigned char*)0x2006) ='s mean?