Jump to content
IGNORED

Blue square in cc65


Recommended Posts

I've noticed that whenever using screen mode 1 or 2, there will be a square on the bottom of the screen which takes up the last few lines of the screen buffer.

post-34966-0-45225100-1364063877_thumb.png

 

Although it's blue in this picture, it actually takes on the color specified in color register 2. It also appears to be in another screen mode since it's capable of displaying both upper and lowercase letters.

Now I admit this is kinda cool and potentially useful (especially for an RPG game), but it's not something I want on my title screen. Does anyone know why this is happening, and how I can get rid of it?

 

There's nothing special going on my code:

 

int main()
{
unsigned char * scrLoc;
char scrBuffer[50];

//draw title screen
_graphics(1);
scrLoc = SAVMSC;

strcpy(scrBuffer,"1 player game");
str_to_internal(scrBuffer);
memcpy(scrLoc,scrBuffer,14);

_setcolor_low(0,COLOR_RED);
strcpy(scrBuffer,"SOME TEXT");
str_to_internal(scrBuffer);
memcpy(scrLoc + 85,scrBuffer,9);

strcpy(scrBuffer,"PRESS # TO DETERMINE GAME MODE");
str_to_internal(scrBuffer);
memcpy(scrLoc + 400,scrBuffer,31);

//go into either one player or two player game

while(1);
return 0;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...