⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cycles.inc

📁 NES game Emulator in Linux.c and asm codes.
💻 INC
字号:
%if 0

SNEeSe, an Open Source Super NES emulator.


Copyright (c) 1998-2004 Charles Bilyue'.
Portions Copyright (c) 2003-2004 Daniel Horchner.

This is free software.  See 'LICENSE' for details.
You must read and accept the license prior to use.

%endif

%ifndef SNEeSe_cycles_inc
%define SNEeSe_cycles_inc

%define _5A22_FAST_CYCLE 6
%define _5A22_SLOW_CYCLE 8
%define _5A22_LEGACY_CYCLE 12

%define CYCLES_PER_DOT 4
%define DOTS_PER_SCANLINE 341
%define DOTS_IN_REFRESH 10
%define USABLE_DOTS_PER_SCANLINE (DOTS_PER_SCANLINE - DOTS_IN_REFRESH)
%define DOTS_BEFORE_DISPLAY 0
%define DOTS_BEFORE_REFRESH 0x85
%define DOTS_IN_DISPLAY 256
%define DOTS_HBLANK_START (DOTS_BEFORE_DISPLAY + DOTS_IN_DISPLAY)
%define DOTS_HDMA_START 278

%define CYCLES_NEW_SCANLINE ((DOTS_PER_SCANLINE - DOTS_IN_REFRESH) * CYCLES_PER_DOT)
%define CYCLES_DISPLAY_START (DOTS_BEFORE_DISPLAY * CYCLES_PER_DOT)
%define CYCLES_HBLANK_START ((DOTS_HBLANK_START - DOTS_IN_REFRESH) * CYCLES_PER_DOT)
%define CYCLES_HDMA_START ((DOTS_HDMA_START - DOTS_IN_REFRESH) * CYCLES_PER_DOT)

%define CYCLES_NMI_DELAY 19
%define CYCLES_REFRESH_START (DOTS_BEFORE_REFRESH * CYCLES_PER_DOT)
%define CYCLES_IN_REFRESH (DOTS_IN_REFRESH * CYCLES_PER_DOT)
%define CYCLES_REFRESH_END ((DOTS_BEFORE_REFRESH + DOTS_IN_REFRESH) * CYCLES_PER_DOT)

%endif ; !defined(SNEeSe_cycles_inc)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -