Jump to content
Sign in to follow this  
vdub_bobby

Reading from write-only TIA registers

Recommended Posts

What do you get when you read from the write-only TIA registers, like GRP0, HMP0, etc.?

 

I know you don't get the value that's actually in the registers, but what do you get?

 

I was messing around with PCAE testing some of this but I'm not sure if that emulator correctly emulates this stuff - anybody know? - so I thought I'd ask you smart folk :)

 

For example, in PCAE, after this:

lda #$FF

sta GRP0

lda GRP0

A is zero.

Share this post


Link to post
Share on other sites

Trying to follow the trace file in z26...

 

And after this code:

lda #$FE

sta GRP0

lda GRP0

A holds $1B, which is the address of GRP0, when run by z26. Which seems odd.

Share this post


Link to post
Share on other sites

:idea: Have a look at the source codes of Stella or z26 (PCAE is quite outdated and not nearly as reliable as those two). There you should find some information.

 

And search the [stella] mailing list, IIRC your question was diskussed there too.

Share this post


Link to post
Share on other sites
What do you get when you read from the write-only TIA registers, like GRP0, HMP0, etc.?

You get the contents of the collision registers, which are mirrored every 16 bytes. And I guess you get bus float from the remaining 4 (?) unused read locations.

Share this post


Link to post
Share on other sites
What do you get when you read from the write-only TIA registers, like GRP0, HMP0, etc.?

You get the contents of the collision registers, which are mirrored every 16 bytes. And I guess you get bus float from the remaining 4 (?) unused read locations.

 

Yeah, the stuff I found on Stella (http://www.biglist.com/lists/stella/archives/200107/msg00045.html) said basically the same thing.

 

What is the bus, though?

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...