CPU: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(→‎Section: This is illegal, you know)
No edit summary
Line 1: Line 1:
The NES CPU core is based on the 6502 processor and runs at approximately 1.79 MHz (1.66 MHz in a PAL NES). It is made by Ricoh and lacks the MOS6502's decimal mode. In the NTSC NES, the RP2A03 chip contains the CPU and APU; in the PAL NES, the CPU and APU are contained within the RP2A07 chip.  
The NES CPU core is based on the 6502 processor and runs at approximately 1.79 MHz (1.66 MHz in a PAL NES). It is made by Ricoh and lacks the MOS6502's decimal mode. In the NTSC NES, the RP2A03 chip contains the CPU and APU; in the PAL NES, the CPU and APU are contained within the RP2A07 chip.  
<noinclude>


=== Section ===
=== Sections ===
 
* [[6502 instructions|CPU instructions]]
* [[CPU_addressing_modes|Addressing modes]]
* [[CPU_addressing_modes|CPU addressing modes]]
* [[CPU_memory_map|Memory map]]
* [[CPU_memory_map|CPU memory map]]
* [[CPU_power_up_state|Power up state]]
* [[CPU_power_up_state|CPU power-up state]]
* [[CPU_status_flag_behavior|status flag behavior]]
* [[CPU_status_flag_behavior|CPU status flag behavior]]
* [[CPU unofficial opcodes|Unofficial opcodes]]
* [[CPU unofficial opcodes|Unofficial opcodes]]
* [[CPU_pin_out_and_signal_description|CPU pin-out and signals]], and other [[hardware pinout|hardware pin-outs]]


</noinclude>
=== CPU signals and frequencies ===
 
=== Note ===  
The CPU generates its clock signal by dividing the master clock signal.
The CPU generates its clock signal by dividing the master clock signal.
{| border="1"
{| class="tabular"
|-
|-
! Rate || NTSC NES/Famicom || PAL NES || PAL Famiclone
! Rate || NTSC NES/Famicom || PAL NES || PAL Famiclone
Line 28: Line 26:
| CPU clock frequency 6''f<sub>sc</sub>''/''d'' || 1.789773 MHz || 1.662607 MHz || 1.773448 MHz
| CPU clock frequency 6''f<sub>sc</sub>''/''d'' || 1.789773 MHz || 1.662607 MHz || 1.773448 MHz
|}
|}
=== Notes ===
* Kevtris has confirmed that all illegal 6502 opcodes execute identically on the 2A03/2A07. He has even went as far as to integrate them into the CopyNES BIOS.
* Kevtris has confirmed that all illegal 6502 opcodes execute identically on the 2A03/2A07. He has even went as far as to integrate them into the CopyNES BIOS.
* The CPU pinout is located in the [[hardware pinout]] section [[CPU_pin_out_and_signal_description|here]]
* For the CPU instruction list, see [[6502 instructions]].
<noinclude>
* A printer friendly version covering all section is available [[CPU ALL|here]].
* A printer friendly version covering all section is available [[CPU ALL|here]].
</noinclude>

Revision as of 09:25, 27 December 2010

The NES CPU core is based on the 6502 processor and runs at approximately 1.79 MHz (1.66 MHz in a PAL NES). It is made by Ricoh and lacks the MOS6502's decimal mode. In the NTSC NES, the RP2A03 chip contains the CPU and APU; in the PAL NES, the CPU and APU are contained within the RP2A07 chip.

Sections

CPU signals and frequencies

The CPU generates its clock signal by dividing the master clock signal.

Rate NTSC NES/Famicom PAL NES PAL Famiclone
Color subcarrier frequency fsc (exact) 39375000/11 Hz 4433618.75 Hz 4433618.75 Hz
Color subcarrier frequency fsc (approx.) 3.579545 MHz 4.433619 MHz 4.433619 MHz
Master clock frequency 6fsc 21.477272 MHz 26.601712 MHz 26.601712 MHz
Clock divisor d 12 16 15
CPU clock frequency 6fsc/d 1.789773 MHz 1.662607 MHz 1.773448 MHz

Notes

  • Kevtris has confirmed that all illegal 6502 opcodes execute identically on the 2A03/2A07. He has even went as far as to integrate them into the CopyNES BIOS.
  • A printer friendly version covering all section is available here.