Primordial Ooze Posted September 27, 2011 Share Posted September 27, 2011 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 Quote Link to comment Share on other sites More sharing options...
sloopy Posted September 28, 2011 Share Posted September 28, 2011 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. Quote Link to comment Share on other sites More sharing options...
ScumSoft Posted September 29, 2011 Share Posted September 29, 2011 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. Quote Link to comment Share on other sites More sharing options...
Primordial Ooze Posted September 29, 2011 Author Share Posted September 29, 2011 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.