In my routine, I am able to load a register, use AND, and the value is changed. But after that, ill do the same with another register, and the value does not change....
Example
Example
Code:
LDA $70 ;46 is in $70
AND #$F0 ;i use this for checking bits, I want to make the (6) in the value (46) to 0, so now the value in A is 40
STA $70 ;40 into $70
Now here is where I get no change...
LDA $84 ;95 is in $84
AND #$FD ;i use this cause I want the (5) in the value (95) to become (D) making 95 into 9D, but nothing happens, and 95 still remains...
AND #$F0 ;i use this for checking bits, I want to make the (6) in the value (46) to 0, so now the value in A is 40
STA $70 ;40 into $70
Now here is where I get no change...
LDA $84 ;95 is in $84
AND #$FD ;i use this cause I want the (5) in the value (95) to become (D) making 95 into 9D, but nothing happens, and 95 still remains...