Home
last modified time | relevance | path

Searched refs:nCpuFreqShift (Results 1 – 20 of 20) sorted by relevance

/dports/emulators/hatari/hatari-2.2.1/src/includes/
H A DcycInt.h45 type == INT_MFP_CYCLE ? ( (cyc)*INT_MFP_TO_INTERNAL ) << nCpuFreqShift : \
46 ( (cyc)*INT_CPU_TO_INTERNAL ) << nCpuFreqShift )
58 … type == INT_MFP_CYCLE ? ( ((cyc)+INT_MFP_TO_INTERNAL-1)/INT_MFP_TO_INTERNAL ) >> nCpuFreqShift : \
59 ( (cyc)/INT_CPU_TO_INTERNAL ) >> nCpuFreqShift )
H A Dclocks_timings.h69 void ClocksTimings_UpdateCpuFreqEmul ( MACHINETYPE MachineType , int nCpuFreqShift );
H A Dm68000.h217 extern int nCpuFreqShift;
/dports/emulators/hatari/hatari-2.2.1/src/
H A Dclocks_timings.c349 ClocksTimings_UpdateCpuFreqEmul ( MachineType , nCpuFreqShift ); in ClocksTimings_InitMachine()
364 void ClocksTimings_UpdateCpuFreqEmul ( MACHINETYPE MachineType , int nCpuFreqShift ) in ClocksTimings_UpdateCpuFreqEmul() argument
374 Cpu_Freq_Emul <<= nCpuFreqShift; /* 8, 16 or 32 MHz */ in ClocksTimings_UpdateCpuFreqEmul()
380 if ( nCpuFreqShift == 0 ) Cpu_Freq_Emul >>= 1; /* 8 MHz */ in ClocksTimings_UpdateCpuFreqEmul()
381 else if ( nCpuFreqShift == 2 ) Cpu_Freq_Emul <<= 1; /* 32 MHz */ in ClocksTimings_UpdateCpuFreqEmul()
387 if ( nCpuFreqShift == 0 ) Cpu_Freq_Emul >>= 2; /* 8 MHz */ in ClocksTimings_UpdateCpuFreqEmul()
388 else if ( nCpuFreqShift == 1 ) Cpu_Freq_Emul >>= 1; /* 16 MHz */ in ClocksTimings_UpdateCpuFreqEmul()
423 CyclesPerVBL <<= nCpuFreqShift; in ClocksTimings_GetCyclesPerVBL()
H A Dspec512.c170 if ( nCpuFreqShift ) /* if cpu freq is 16 or 32 MHz */ in Spec512_StoreCyclePalette()
173 nHorPos >>= nCpuFreqShift; in Spec512_StoreCyclePalette()
322 CycleEnd >>= nCpuFreqShift; /* Convert cycle position to 8 MHz equivalent */ in Spec512_EndScanLine()
H A Dvideo.c676 #define VIDEO_HPOS_TO_CYCLE( pos ) ( pos << nCpuFreqShift )
677 #define VIDEO_CYCLE_TO_HPOS( cyc ) ( cyc >> nCpuFreqShift )
2494 nCyclesPerLine_new <<= nCpuFreqShift; in Video_Update_Glue_State()
2855 PendingCyclesOver <<= nCpuFreqShift; in Video_InterruptHandler_HBL()
2951 ( pVideoTiming->VblVideoCycleOffset << nCpuFreqShift ) - FrameCycles; in Video_InterruptHandler_HBL()
3148 nCyclesPerLine <<= nCpuFreqShift; in Video_StartHBL()
3992 nCyclesPerLine <<= nCpuFreqShift; in Video_ResetShifterTimings()
4284 Pos <<= nCpuFreqShift; /* convert Pos at 8 MHz into number of cycles at 8/16/32 MHz */ in Video_AddInterrupt()
4313 if ( ( Pos << nCpuFreqShift ) > CycleVideo ) in Video_AddInterruptTimerB()
4345 if ( ( Pos << nCpuFreqShift ) > FrameCycles ) /* check Pos for line 0 was not already reached */ in Video_StartInterrupts()
[all …]
H A Dconfiguration.c852 ConfigureParams.System.nCpuFreq = 8; nCpuFreqShift = 0; in Configuration_SetDefault()
1284 nCpuFreqShift = 0; in Configuration_ChangeCpuFreq()
1289 nCpuFreqShift = 2; in Configuration_ChangeCpuFreq()
1294 nCpuFreqShift = 1; in Configuration_ChangeCpuFreq()
1297 ClocksTimings_UpdateCpuFreqEmul ( ConfigureParams.System.nMachineType , nCpuFreqShift ); in Configuration_ChangeCpuFreq()
H A Dmidi.c48 #define MIDI_TRANSFER_BIT_CYCLE ( 256 << nCpuFreqShift )
H A Dm68000.c105 int nCpuFreqShift; /* Used to emulate higher CPU frequencies: 0=8MHz, 1=16MHz, 2=32Mhz */ variable
H A Dmfp.c1663 pos_start >>= nCpuFreqShift; in MFP_TimerBData_ReadByte()
H A Dfdc.c730 CpuCycles <<= nCpuFreqShift; /* Convert to x1 or x2 or x4 cpu speed */ in FDC_FdcCyclesToCpuCycles()
751 CpuCycles >>= nCpuFreqShift; /* Compensate for x2 or x4 cpu speed */ in FDC_CpuCyclesToFdcCycles()
/dports/games/libretro-hatari/hatari-561c07e/src/includes/
H A Dm68000.h170 extern int nCpuFreqShift;
190 cycles = cycles >> nCpuFreqShift; in M68000_AddCycles()
283 cycles = cycles >> nCpuFreqShift; in M68000_AddCyclesWithPairing()
/dports/games/libretro-hatari/hatari-561c07e/src/
H A Dm68000.c90 int nCpuFreqShift; /* Used to emulate higher CPU frequencies: 0=8MHz, 1=16MHz, 2=32Mhz… variable
275 nCpuFreqShift = 0; in M68000_CheckCpuSettings()
280 nCpuFreqShift = 2; in M68000_CheckCpuSettings()
285 nCpuFreqShift = 1; in M68000_CheckCpuSettings()
H A DioMemTabFalcon.c124 nCpuFreqShift = 1; in IoMemTabFalcon_BusCtrl_WriteByte()
129 nCpuFreqShift = 0; in IoMemTabFalcon_BusCtrl_WriteByte()
H A Dblitter.c142 nCyclesMainCounter += all_cycles >> nCpuFreqShift; in Blitter_AddCycles()
932 CycInt_AddRelativeInterrupt((CurrentInstrCycles+nWaitStateCycles)>>nCpuFreqShift, in Blitter_Control_WriteByte()
H A Dacia.c458 Cycles <<= nCpuFreqShift; /* Compensate for x2 or x4 cpu speed */ in ACIA_Start_InterruptHandler_IKBD()
H A Dfdc.c743 CpuCycles >>= nCpuFreqShift; /* Compensate for x2 or x4 cpu speed */ in FDC_FdcCyclesToCpuCycles()
765 CpuCycles <<= nCpuFreqShift; /* Compensate for x2 or x4 cpu speed */ in FDC_CpuCyclesToFdcCycles()
H A Dikbd.c2249 Cycles <<= nCpuFreqShift; /* Compensate for x2 or x4 cpu speed */ in IKBD_Cmd_SetJoystickMonitoring()
/dports/emulators/hatari/hatari-2.2.1/src/falcon/
H A Dcrossbar.c1126 …cyclesClk = ((double)( ( CPU_FREQ << nCpuFreqShift ) ) / Crossbar_DetectSampleRate(25)) / (double)… in Crossbar_Recalculate_Clocks_Cycles()
1133 …cyclesClk = ((double)( ( CPU_FREQ << nCpuFreqShift ) ) / Crossbar_DetectSampleRate(32)) / (double)… in Crossbar_Recalculate_Clocks_Cycles()
/dports/games/libretro-hatari/hatari-561c07e/src/debug/
H A Dprofilecpu.c867 cycles <<= nCpuFreqShift; in Profile_CpuUpdate()