Files
nes/microcode.txt
2025-02-05 07:19:53 +01:00

141 lines
2.1 KiB
Plaintext

LDA LDX LDY BIT ADC SBC AND ORA EOR CMP CPX CPY
=====================================
LDA #imm
FetchOperandLo
FetchOpcode
LDA ZeroPage
FetchOperandLo
ReadAddress
FetchOpcode
LDA ZeroPage,X
FetchOperandLo
IndexX
ReadAddress;
FetchOpcode
LDA Absolute
FetchOperandLo
FetchOperandHi
ReadAddress
FetchOpcode
LDA Absolute, X/Y
FetchOperandLo
FetchOperandHiAndIndex;
ReadAddressAndSkip;
ReadAddress
FetchOpcode
LDA (Indirect, X)
FetchOperandLo
IndexX
FetchAddressLo;
FetchAddressHi;
ReadAddress
FetchOpcode
LDA (Indirect), Y
FetchOperandLo
FetchAddressLo
FetchAddressHiAndIndex
ReadAddressAndSkip
ReadAddress
FetchOpcode
STA STX STY
=====================================
STA ZeroPage
FetchOperandLo
WriteRegister
FetchOpcode
STA ZeroPage, X
FetchOperandLo
IndexX
WriteRegister
FetchOpcode
STA Absolute
FetchOperandLo
FetchOperandHi
WriteRegister
FetchOpcode
STA Absolute, X/Y
FetchOperandLo
FetchOperandHiAndIndex
ReadAddress
WriteRegister
FetchOpcode
STA (Indirect, X)
FetchOperandLo
IndexX
FetchAddressLo
FetchAddressHi
WriteRegister
FetchOpcode
STA (Indirect), Y
FetchOperandLo
FetchAddressLo
FetchAddressHiAndIndex
ReadAddress
WriteRegister
FetchOpcode
ASL LSR ROL ROR INC DEC
========================
ASL A
FakeFetchOperand
FetchOpcode
ASL ZeroPage
FetchOperandLo
ReadAddress
WriteAddress
WriteAddress
FetchOpcode
ASL ZeroPage, X
FetchOperandLo
IndexX
ReadAddress
WriteAddress
WriteAddress
FetchOpcode
ASL Absolute
FetchOperandLo
FetchOperandHi
ReadAddress
WriteAddress
WriteAddress
FetchOpcode
ASL Absolute, X
FetchOperandLo
FetchOperandHiAndIndex
ReadAddress
ReadAddress
WriteAddress
WriteAddress
FetchOpcode
BCC BCS BNE BEQ BPL BMI BVC BVS
========================
BCC
FetchOperandLo
CheckIfTaken;
CheckIfPageCrossed;
FetchOpcode
CLC SEC CLI SEI CLD SED CLV
===========================