Steril707, on Fri Mar 16, 2007 7:25 PM, said:
vdub_bobby, on Fri Mar 16, 2007 10:43 PM, said:
Without looking at your code at all, have you double-checked to make sure that you aren't testing the joystick bits backwards?
EDIT: I ran the binary and it looks fine to me; the player graphic moves correctly.
I also checked your joystick code and it looks fine, so...what's the problem?

damn, that was the right code coupled with the wrong bin...
(small edit: if you assemble the "redline.asm" you will notice what i mean, anyway, tomorrow i will post the bin file that i mean, sorry for the inconvenience..)
By compiling redline.asm, I presume you meant to say that the player refused to move down. Certainly the code looks correct, but the most baffling errors (As I've found out while I toil away on Action RPG) is the simplest oversight.
SkipMoveDown
lda %00100000
bit SWCHA
bne SkipMoveUp
dec YPosFromBot
You forgot the # in front of the %00100000. As such instead of loading an immediate value into the accumulator you're loading the contents of memory location %00100000 into the accumulator - which could be anything. When you then do a bit test on SWCHA on those contents it's interpreting it as down never being pressed.
--
Mord
Editted because my eglish sux. *nod self*
Edited by Mord, Sun Apr 8, 2007 4:48 PM.