Ex6502.CPU.Executor.TSB (ex6502 v0.1.0) View Source

Test and sets bits in memory, using the accumulator as a test and set mask.

Performs a logical OR between the inverted bits of the accumulator and the bits in memory, storing the result back into memory.

Operation

A ∨ M -> M

Table

TSB Test and Set Memory Bits with Accumulator

A TSB M -> A N Z C I D V

                                - + - - - -

addressing assembler opc bytes cyles


absolute TSB oper 0C 3 6 zeropage TSB oper 04 2 5

Flags

  • Zero: 1 if result is zero; 0 otherwise

Link to this section Summary

Link to this section Functions