Using the register windows in VICE MONITOR (View --> Register window) for debugging purpose, i don't understand some bytes and flag as show in image below.
Someone know the meaning of bytes SP, 00, 01, FL and flags - and B ?
Some helps in register Window of VICE Monitor.
Moderator: Moderators
And in case you don't know where 6502 stores its stack, it is page 1 ($0100-$01FF) counting from top to bottom. SP=F3 means the stack pointer is at $01F3. If you pop it (PLA, PLP) it will become F4. If you instead would push (PHA, PHP) something onto it, it is at F2. TSX transfers SP to X register. TXS does the opposite.
Anders Carlsson
FL is just the hex representation of the flag register... %00100010 in your example is $22. Kind of redundant, but I guess somebody might care.nbla000 wrote:OPS, the FL value what does mean ? and why if - flag is not used sometime is 1 and other 0 ?
The unused flag is called the "expansion bit". According to one book of mine "It is most likely that this bit will appear to be on when one is analyzing the bit pattern in the processor status register; however, no guarantee as to its state is made as this bit will be used in expanded versions of the microprocessor".