Zexx Moore
-
Content Count
3 -
Joined
-
Last visited
Posts posted by Zexx Moore
-
-
Well, NoLand, that was fantastic. I wish I would have explored the clocks, I thought about it, but I was hunting a five and let the opportunity pass. Much appreciated NoLand.
-
1
-
-
I'm having a challenge understanding the divide portion of this code.
LDA PlayerXPos AND #$7F STA WSYNC STA HMCLR SEC DivideLoop: SBC #15 BCS DivideLoop EOR #7 ASL ASL ASL ASL STA HMP0 STA RESP0 STA WSYNC STA HMOVEThe video I watched stated that you wanted the remainder for the "fine" positioning, which I believe is -8 to +7. If I use the value 20 for PlayerXPos, I expect a remainder of 5, as 15 goes into 20 one time with a remainder of 5. After doing the exclusive or, and the four left shifts, I end up with the value 0001 for the upper 4 bits, not five. If I worked from 30, and subtract 10 to arrive at 20, then that's out bounds of the negative range, thus it would have to be 15 + the remainder 5.
I don't yet know why the one's complement is taken of the lower three bits, nor where my thinking is flawed, but it's flawed alright.

Horiztonal Movement Code Question
in Atari 2600 Programming
Posted
Thanks for the manual link NoLand. I just recently bought Lance Leventhal's 6502 book on ebay, but I'm not too far in yet.
Regarding the latch, in the atari course I'm taking, I don't recall that being mentioned yet thus I have no idea of it's importance at this time.