Open main menu

CDOT Wiki β

Changes

6502 Math

163 bytes added, 01:35, 18 September 2023
no edit summary
The BIT instruction performs a bitwise AND, sets the Z flag based on the result, and transfers bits 6 and 7 of the operand into the N and V flags.
 
== Multiplication and Division ==
 
There are no multiplication or division instructions on the 6502; it is up to the programmer to provide the appropriate logic.