Jump to content
IGNORED

F18a proper way to reset the F18a extended registers


Recommended Posts

What is the proper way to reset the F18a extended registers so that they have the same values as after a clean power-up cycle?

 

Reason I'm asking is that if you change extended VDP registers the settings stay active even after down a "BLWP @0".

 

In this particular case I have a crash handler in my assembly program that resets the TI to a defined state.

But obviously I do not know what was set in the F18a extended registers by the calling program before.

Could keep track of any value written to the F18a registers, but with the many extended registers that may get cumbersome.

 

In my last example I turn on position-based attributes, but obviously if I reset the TI, the screen is unreadable. 

I know how to resolve this particular case, but would prefer a generic solution.

 

 

  • Like 2
Link to comment
Share on other sites

Note that the palette registers are *not* reset.  They are implemented as a memory, which needs to be addresses one location at a time, and only gets an initial setting when the FPGA loads its bit-stream at power on.  That means, any changes you make to the first 16 palette registers will change the "standard" 16-colors used when the F18A is locked or before the palette-select bits are changed (only possible when the F18A is unlocked).

Edited by matthew180
  • Like 1
Link to comment
Share on other sites

55 minutes ago, GDMike said:

Could it not be saved prior, just asking.

 

We are used to the 9918 registers mostly being write-only. So we think in our soul that the answer is no... but once the F18A is unlocked, the answer changes to yes.   

 

However, it is less code (if the intent is to dump back to the title screen) to ask the F18A to reset what it can, and then let the console rom do the rest... 

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