Jump to content
IGNORED

Black Screen


Recommended Posts

Hi,

 

I am having an issue with getting a simple display going. What's supposed to happen is a brown smiley face is supposed to appear.on the screen. Instead, all I get is a black screen with nothing being shown. I tried using the debugger, but couldn't figure out what was going on as it kept getting stuck on the line checking to see if the players y position is equal to the current scanline until the overscan period.

 

Source Code: https://www.dropbox.com/s/4vb0fdklz2oz2qb/source.asm?dl=0

Link to comment
Share on other sites

Just at a first glance, I am noticing this:

; ***********************
; Initialisation
; ***********************
lda #01 ; decimal color code for brown
sta COLUP0 ; set player's graphic color

This is black on a default background of black. I'm assuming NTSC based on the timings, so you probably want maybe something like $F4 here for brown, depending on the desired shade. See this page for color reference:

 

http://www.qotile.net/minidig/docs/tia_color.html

  • Like 1
Link to comment
Share on other sites

Just at a first glance, I am noticing this:

; ***********************
; Initialisation
; ***********************
lda #01 ; decimal color code for brown
sta COLUP0 ; set player's graphic color

This is black on a default background of black. I'm assuming NTSC based on the timings, so you probably want maybe something like $F4 here for brown, depending on the desired shade. See this page for color reference:

 

http://www.qotile.net/minidig/docs/tia_color.html

Thanks for the handy link, I was looking at the one here: https://atariage.com/2600/programming/2600_101/06happy.html which is very different than the one you linked to.

 

I assembled your source myself and ran it under Stella, turning on the "debug colors" option (Control-Comma or Command-Comma depending on your platform). Your sprite is there, but just invisible due to color.

 

attachicon.gifScreen Shot 2018-10-09 at 10.47.53 PM.png

 

That's actually very good to know. As I said I 'm very new to this so I'm starting very slow, and working my way up. This is actually my third "step", the second was just getting a basic skeleton working and the first setting up a working development toolchain. Is there a tutorial for the Stella debugger that i can use to learn how to use it better maybe on Youtube?

Link to comment
Share on other sites

I'm guessing that you are aware of the the documentation page for the debugger, but I'll give you that link just in case. I hadn't heard of any tutorials myself, though searching for "stella debugger" on YouTube showed a couple of results from the same user. If you try them, I'd be interested to hear how helpful they were:

 

 

 

(Based on seeing "Mr. Celery" in the thumbnail, I wonder if these were made by our own atari2600land).

Link to comment
Share on other sites

Thanks for the handy link, I was looking at the one here: https://atariage.com/2600/programming/2600_101/06happy.html which is very different than the one you linked to.

 

You just read that table wrong. The color you assumed to be $01 is $10. On top is the base color, which is the first digit, The brightness is the second digit.

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...