Jump to content
IGNORED

reboot command makes 263 scanlines


atari2600land
 Share

Recommended Posts

I don't know if anyone else is aware of this, but when I use the "reboot" command in bB, it always makes the number of scanlines go up to 263. I wonder if there's a way to fix this so it stays constant at 262.

I haven't looked at the reboot code yet, but if it jumps to the page-zero-clearing startup routine, then I'm surprised it stays so close to 262 lines when you use it. Personally, I expect the screen to jump or blink when I press the RESET console switch to reboot a game, due to either one short frame (fewer than 262 lines) or one long frame (more than 262 lines) at the moment of reset. But if it only goes up by 1 line, then maybe there *is* a way to keep it at a steady 262 lines? It's certainly worth a look. On the other hand, I wonder if it makes a difference where you put the reboot command? Are you using it right after a drawscreen command, or somewhere else?

 

Michael

Link to comment
Share on other sites

I just did a simple test program, and it does matter where you put it. When I tried it one way, the screen went to 264 lines. Another way, it went to 291 lines. Yet another way, it seems to flicker between two different line counts and I can't tell what they are.

 

  rem * this goes to 264 lines
loop
  drawscreen
  if switchreset then reboot
  goto loop

 

  rem * this goes to 291 lines
loop
  if switchreset then reboot
  drawscreen
  goto loop

 

  rem * this flickers between different counts
loop
  drawscreen
  if switchreset then drawscreen : reboot
  goto loop

Michael

 

 

 

Link to comment
Share on other sites

I did some more examining, and with the present code it's at now, when pressing F2 (reset in Stella), the screen count goes to 263 for one frame, then up to 277 for one frame, then back down to the standard 262. I use reboot in this code @ lines 232 and 338.

stacker2_121610_v3.bas.bin

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

  • Recently Browsing   0 members

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