increment, decrement, and addressing?
Posted: Sun Jun 23, 2013 5:05 pm
How does the 6502 increment and decrement the X and Y registers? I orginally thought that the registers were loaded into the alu A input register and the carry was set to one, but I am not so sure anymore after I heard that the 6502 had a increment/decrement circuit seperate of the alu. Is the alu used or is the special increment/decrement circuit used? If the alu is used, how does it only add carry and not the B input register too? Is the B input register loaded with zero? Also, how does the 6502 generate the 1 for the high byte of the address when using the stack pointer? How does it generate 0 when accessing zero page and FF when access the interupt vectors?