1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Forces the Apple II bus handler call inline.

This commit is contained in:
Thomas Harte 2018-05-28 18:21:01 -04:00
parent 6812a001d8
commit b2464598d0

View File

@ -24,6 +24,8 @@
#include "DiskIICard.hpp" #include "DiskIICard.hpp"
#include "Video.hpp" #include "Video.hpp"
#include "../../ClockReceiver/ForceInline.hpp"
#include "../../Analyser/Static/AppleII/Target.hpp" #include "../../Analyser/Static/AppleII/Target.hpp"
#include <algorithm> #include <algorithm>
@ -203,7 +205,7 @@ class ConcreteMachine:
return &speaker_; return &speaker_;
} }
Cycles perform_bus_operation(CPU::MOS6502::BusOperation operation, uint16_t address, uint8_t *value) { forceinline Cycles perform_bus_operation(CPU::MOS6502::BusOperation operation, uint16_t address, uint8_t *value) {
++ cycles_since_video_update_; ++ cycles_since_video_update_;
++ cycles_since_card_update_; ++ cycles_since_card_update_;
cycles_since_audio_update_ += Cycles(7); cycles_since_audio_update_ += Cycles(7);