Jump to content



0

Killing 2 birds with 1 stone


5 replies to this topic

#1 grafixbmp OFFLINE  

grafixbmp

    Dragonstomper

  • 659 posts
  • Location:South Central US

Posted Tue Oct 13, 2009 1:50 AM

I know there are tons of nifty little tricks out there, but out of all of them, I would like to know of thoes involving doubling up on a single byte. For example, storing to a color register only requires the last 7 bits leaving the first one open for other things especialy triggers. likewise, PF0 only needs the last 4 while the first 4 can do something else. And even some triggers are conveniently located in a byte where an already avaliable byte can trigger it properly without having to load anything fresh. What are some of your favorite/most used tricks in pulling double time? :)

Edited by grafixbmp, Tue Oct 13, 2009 1:51 AM.


#2 ScumSoft OFFLINE  

ScumSoft

    Moonsweeper

  • 331 posts
  • Location:Polysorbate 60

Posted Tue Oct 13, 2009 4:05 PM

Sounds like neat tricks, but I thought all TIA registers were write only.

Edited by ScumSoft, Tue Oct 13, 2009 4:07 PM.


#3 tokumaru OFFLINE  

tokumaru

    Chopper Commander

  • 164 posts
  • Location:Rio de Janeiro - Brazil

Posted Tue Oct 13, 2009 4:48 PM

View PostScumSoft, on Tue Oct 13, 2009 4:05 PM, said:

Sounds like neat tricks, but I thought all TIA registers were write only.
I believe he meant that when the data that will be written to the registers is stored in the ROM, the bits that are not used by the TIA can be used to store other information, not that you can use the TIA for extra memory.

#4 batari OFFLINE  

batari

    )66]U('=I;B$*

  • 6,236 posts
  • begin 644 contest

Posted Tue Oct 13, 2009 5:03 PM

View PostScumSoft, on Tue Oct 13, 2009 4:05 PM, said:

Sounds like neat tricks, but I thought all TIA registers were write only.
No, the collision registers, joystick buttons and paddle registers may be read.

#5 ScumSoft OFFLINE  

ScumSoft

    Moonsweeper

  • 331 posts
  • Location:Polysorbate 60

Posted Tue Oct 13, 2009 6:11 PM

Yes with the exception of those of course ;)

I understand what is being said now, I thought you were somehow accessing the data written to the read only registers.
You wish for the lower nibble of PF0 to set a flag, then push that flag onto the stack in order for it to be reused later on correct?

#6 grafixbmp OFFLINE  

grafixbmp

    Dragonstomper

  • 659 posts
  • Location:South Central US

Posted Fri Oct 16, 2009 1:36 AM

Since the status flag register holds 7 diffrent status flags for varius things, are there several types of instances where many TIA registers align just right for current flags states to trigger TIA registers other than the missles?

Also, is it a common practice to keep a RAM reference of both NUSIZ since they control multiple things with graphics. Or even other TIA registers. Like when you need to make modifications to a specific part without changing the other sections. I wondered if the processor status could do some of these changes like with the missles.

Edited by grafixbmp, Fri Oct 16, 2009 1:44 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users