mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-09 00:37:27 +00:00
Obey blitter DMA-enable mask.
This commit is contained in:
parent
e412927415
commit
76e9fcc94a
@ -219,6 +219,7 @@ template <int cycle> void Chipset::output() {
|
||||
}
|
||||
|
||||
template <int cycle, bool stop_if_cpu> bool Chipset::perform_cycle() {
|
||||
constexpr auto BlitterFlag = DMAMask<DMAFlag::Blitter, DMAFlag::AllBelow>::value;
|
||||
constexpr auto CopperFlag = DMAMask<DMAFlag::Copper, DMAFlag::AllBelow>::value;
|
||||
constexpr auto DiskFlag = DMAMask<DMAFlag::Disk, DMAFlag::AllBelow>::value;
|
||||
|
||||
@ -255,7 +256,10 @@ template <int cycle, bool stop_if_cpu> bool Chipset::perform_cycle() {
|
||||
|
||||
// Down here: give first refusal to the Blitter, otherwise
|
||||
// pass on to the CPU.
|
||||
return !blitter_.advance();
|
||||
if((dma_control_ & BlitterFlag) == BlitterFlag) {
|
||||
return !blitter_.advance();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
template <bool stop_on_cpu> int Chipset::advance_slots(int first_slot, int last_slot) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user