#include #include #include #define MAP_WIDTH 10 #define MAP_HEIGHT 2 #define TITLE_TILE_WIDTH 4 #define TITLE_TILE_HEIGHT 4 #define PTR_SCREEN ((char *)0xc000) #define PTR_BUFFER ((char *)0xc400) #define PTR_COLOR ((char *)0xd800) #define PTR_FONTCHARSET ((char *)0xd800) const char TitleMap[1024] = { #for(i, 1024) i * 17, }; const char TitleTiles[4096] = { #for(i, 4096) i * 31, }; // Custom screen address extern char* const Screen = PTR_SCREEN; // Color mem address extern char* const Color = PTR_COLOR; void RenderLogo(char screenY) { char * sp = Screen; char * cp = Color; const char * mp = TitleMap; for(char ty=0; ty < MAP_HEIGHT; ty++) { for(char tx=0; tx< MAP_WIDTH; tx++) { char ti = mp[tx]; const char* tp = TitleTiles + (TITLE_TILE_WIDTH * TITLE_TILE_HEIGHT) * ti; for(char y=0; y