Skip to content

Commit

Permalink
Update x6502.h
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 24, 2024
1 parent 163a6b5 commit b4f0f33
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/x6502.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,17 @@ extern X6502 cpu;

extern void (*MapIRQHook)(int a);

#define NTSC_CPU (isDendy ? 1773447.467 : 1789772.7272727272727272)
#define PAL_CPU 1662607.125
/* 21.47~ MHz ÷ 12 = 1.789773 MHz */
#define NTSC_CLOCK_SPEED 1789772.7272727272727272

/* 26.60~ MHz ÷ 16 = 1.662607 MHz */
#define PAL_CLOCK_SPEED 1662607.125

/* 26.60~ MHz ÷ 15 = 1.773448 MHz */
#define DENDY_CLOCK_SPEED 1773447.467

#define NTSC_CPU (isDendy ? DENDY_CLOCK_SPEED : NTSC_CLOCK_SPEED)
#define PAL_CPU PAL_CLOCK_SPEED

#define FCEU_IQEXT 0x001
#define FCEU_IQEXT2 0x002
Expand Down

0 comments on commit b4f0f33

Please sign in to comment.