Jump to content
IGNORED

Can't get background to flash


Primordial Ooze

Recommended Posts

Hi everyone,

 

Getting close to getting a simple display up despite everything that's happening to me. The problem I'm having is for some reason i can't set my background to quickly change to white then back to blue when the fire button is pressed. Here's the bit of code that does it:

	 lda INPT4                           		 ; was the gun trigger pressed?

	 bmi SkipCheckFire                      ; if the gun's trigger wasn't pressed then jump to

SkipCheckFire

    lda #WHITE

    sta COLUBK								  ; set the background color to white

    lda #BLUE

    sta COLUBK								  ; then back to blue to simulate a gunfire

SkipCheckFire

In practice this should work, but it doesn't. I have attached my code for reference. Any assistance would be greatly appreciated.

 

Sincerely,

 

Primordial Ooze

Link to comment
Share on other sites

altho i am not familiar with 2600 coding, i would guess its cause you need to have COLUBK have #WHITE in it for more then 5 machine cycles... depending on when this happens, it wouldnt be on screen to even see...

 

sloopy.

Link to comment
Share on other sites

Of course that won't work silly, you have to draw the white screen first THEN set it back to black.

Your not drawing the screen between the changes.

Thanks, with your information i managed to get it working. That was a silly mistake to assume that you can flicker the screen simply by changing the background color twice in succession expecting that the Atari would simply change to background twice and updating the screen twice in quick succession. Boy so i need to revisit Andrew Davies tutorials again, especially to refresh my memory about the television display basics. Thanks again for your help.

 

Sincerely,

 

Primordial Ooze

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