I know in certain opcodes we have to take into consideration of an extra cycle whenever there is "page crossing" but what is it exactly?
Does page crossing just mean when only the resulting high byte of an address is different from the previous (i.e. changed)? Let's say a random example of $1E FF to $1F 00? If this is the case, would the algorithm be something like this:
Code: Select all
Interpret addressing mode
do operation
determine which status bits need to be updated
increment pc counter
increment cycle counter
if page crossed then cycle counter = cycle counter + 1