Okay, that seems to work just fine!Thank you, both. <3
I have a few questions on how this works though.
Originally posted by 65c816 InstructionsTRB - Test and Reset Bit
Tests the bit similarly to “AND”, and clears it, while affecting the flags.
So basically, the code tells the "
by" to go back to zero (or its original state?) when it's checked as C0 (aka when pressing ABXY)?
Similarly to CMPing it then STZing maybe?
Could the same Opcode be used as, for example, if I wanted mario to stay small when eating a mushroom: LDA #$01 TRB $19 ?
It seems to work that way, besides the "growing" animation still playing. Is there a better way to approach that kind of operation, or is this the correct way?
Sorry for the silly questions, I just felt like asking since we're already here. Also, some things are easier to understand when explained directly, instead of reading in a compiled tutorial