Jump to content



0

Reading from write-only TIA registers


6 replies to this topic

#1 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Thu Jan 13, 2005 4:28 PM

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.

#2 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Thu Jan 13, 2005 4:54 PM

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.

#3 Thomas Jentzsch OFFLINE  

Thomas Jentzsch

    Thrust, Jammed, SWOOPS!

  • 16,745 posts
  • Always left from right here!
  • Location:Düsseldorf, Germany

Posted Thu Jan 13, 2005 5:24 PM

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

#4 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Thu Jan 13, 2005 6:09 PM

Thanks, I found some stuff on Stella that answered most of my questions.

#5 Bruce Tomlin OFFLINE  

Bruce Tomlin

    River Patroller

  • 3,531 posts
  • CD C9 01
  • Location:Austin, TX

Posted Thu Jan 13, 2005 11:10 PM

vdub_bobby said:

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.

#6 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Fri Jan 14, 2005 11:52 AM

Bruce Tomlin said:

vdub_bobby said:

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.c...7/msg00045.html) said basically the same thing.

What is the bus, though?

#7 Nukey Shay ONLINE  

Nukey Shay

    Sheik Yerbouti

  • 20,458 posts
  • Location:The land of Gorch

Posted Sat Jan 15, 2005 1:24 AM

Riders ;) Then they get off and there's just the driver until he goes home.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users