6502 CMP question
Posted: Sun Mar 07, 2004 8:01 am
Im programming a 6502 emulator for a NES emulator im making. Im using "MOS Microcomputers Programmer Manual" as a reference and its quite decent, but i have the following problem/question regarded de CMP,CPX, CPY Instructions:
The manual says: "This instruction subtracts the contents of memory from the contents of the accumulator", but it says that the simbolic notation is:
A - M.
Becouse im emulating the instructions with real x86 instructions i want to know if "substract memory from acumlator (M - A)", or "substratc acumulator from memory (A - M).
Thanks.
The manual says: "This instruction subtracts the contents of memory from the contents of the accumulator", but it says that the simbolic notation is:
A - M.
Becouse im emulating the instructions with real x86 instructions i want to know if "substract memory from acumlator (M - A)", or "substratc acumulator from memory (A - M).
Thanks.