Code: Select all
memcpy((unsigned char*)VideoMemory, (unsigned char*)(VideoMemory + (80 * times)), ((25 * 80) - (80 * times)) * 2);
This call to memcpy, as far as I can tell, is correct for what I'm trying to do (shift the text on the screen up [times] lines). This means that my problem lies with memcpy. I've written it correctly, though, with a simple implementation:
Code: Select all
unsigned char *memcpy(unsigned char *dest, const unsigned char *src, unsigned int count)
{
unsigned char *ret = dest;
while (count--)
*dest++ = *src++;
return ret;
}


