Jump to content

Bit 2 of VBLANK

Karl G

Recommended Posts

1 hour ago, RevEng said:

I'm not seeing it in the bB standard kernel... am I missing it?

I guess I was remembering wrong. I can't find an example of it for 2600 code, after all. I do see it in 7800Basic in std_routines.asm. Does this bit have a meaning on the 7800 specifically?

Link to comment
Share on other sites

Yeah, the usage of those bits is unique to the 7800 running in 7800 mode, and also unique to leaving the INPTCTRL register unlocked. Until the INPTCTRL register is locked, any hits to TIA locations also hit INPTCTRL with the same values. Normally, 7800 games will lock INPTCTRL at boot, making this concern moot. But I sometimes use 7800basic to create utilities that interact with INPTCTRL (e.g. the 7800 utility cart keeps INPTCTRL unlocked at first, so it can peek at the BIOS and generate a CRC signature) so my VBLANK (and other TIA register) usage takes that into account where possible.


  • Like 2
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.

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.

  • Recently Browsing   0 members

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