0 Members and 1 Guest are viewing this topic.
#include <os.h>int main (void) {char * buffer=malloc(SCREEN_BYTES_SIZE);memcpy(buffer,0xFF,SCREEN_BYTES_SIZE);char image1[SCREEN_BYTES_SIZE]={image data, too long to post here};memcpy(buffer,image1,SCREEN_BYTES_SIZE);memcpy(SCREEN_BASE_ADDRESS,buffer,SCREEN_BYTES_SIZE);free(buffer);return 0;}
#include <os.h>int main (void) {char * buffer=malloc(SCREEN_BYTES_SIZE);memcpy(buffer,0xFF,SCREEN_BYTES_SIZE);char image1[SCREEN_BYTES_SIZE]={image data, too long to post here};memcpy(buffer,image1,SCREEN_BYTES_SIZE);memcpy(SCREEN_BASE_ADDRESS,buffer,SCREEN_BYTES_SIZE);char image2[SCREEN_BYTES_SIZE]={image data, too long to post here};memcpy(buffer,image2,SCREEN_BYTES_SIZE);memcpy(SCREEN_BASE_ADDRESS,buffer,SCREEN_BYTES_SIZE);free(buffer);return 0;}