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

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

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

Operation

~A ∧ M -> M

Table

TRB Test and Reset Memory Bits with Accumulator

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

                                - + - - - -

addressing assembler opc bytes cyles


zeropage TRB oper 14 2 6 absolute TRB oper 1C 3 5

Flags

  • Zero: 1 if result is zero; 0 otherwise

Link to this section Summary

Link to this section Functions