Changing alignment value to 1K, which seems sufficient and doesnt alienate other functions

This commit is contained in:
Sergio Martin 2024-01-14 17:44:54 +01:00
parent d8b904f53f
commit 5624f29ee6
4 changed files with 10 additions and 22 deletions

View File

@ -8,7 +8,7 @@ option('buildTests',
option('CPUFunctionAlignment', option('CPUFunctionAlignment',
type : 'integer', type : 'integer',
min : 1, min : 1,
value : 4096, value : 1024,
description : '''Indicates the alignment for the main emulator CPU function. description : '''Indicates the alignment for the main emulator CPU function.
This is a large function that may cross page boundaries, which impacts performance. This is a large function that may cross page boundaries, which impacts performance.
We recommend setting this value for the architecture own page size. We recommend setting this value for the architecture own page size.

View File

@ -19,6 +19,15 @@ more details. You should have received a copy of the GNU Lesser General
Public License along with this module; if not, write to the Free Software Public License along with this module; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#define st_n 0x80
#define st_v 0x40
#define st_r 0x20
#define st_b 0x10
#define st_d 0x08
#define st_i 0x04
#define st_z 0x02
#define st_c 0x01
// Macros // Macros
#define GET_OPERAND( addr ) page [addr] #define GET_OPERAND( addr ) page [addr]
@ -198,16 +207,6 @@ void Nes_Cpu::write( nes_addr_t addr, int value )
// status flags // status flags
enum {
st_n = 0x80,
st_v = 0x40,
st_r = 0x20,
st_b = 0x10,
st_d = 0x08,
st_i = 0x04,
st_z = 0x02,
st_c = 0x01,
};
constexpr uint8_t clock_table [256] = { constexpr uint8_t clock_table [256] = {
// 0 1 2 3 4 5 6 7 8 9 A B C D E F // 0 1 2 3 4 5 6 7 8 9 A B C D E F

View File

@ -15,7 +15,6 @@ quickerNESCoreSrc = [
'Effects_Buffer.cpp', 'Effects_Buffer.cpp',
'Nes_State.cpp', 'Nes_State.cpp',
'emu2413.cpp', 'emu2413.cpp',
'nes_data.cpp',
'nes_util.cpp', 'nes_util.cpp',
'emu2413_state.cpp', 'emu2413_state.cpp',
'Nes_Effects_Buffer.cpp', 'Nes_Effects_Buffer.cpp',

View File

@ -1,10 +0,0 @@
// Nes_Emu 0.7.0. http://www.slack.net/~ant/
#include "nes_data.h"
#include "blargg_source.h"