mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-18 01:07:58 +00:00
50 lines
1.0 KiB
C++
50 lines
1.0 KiB
C++
//
|
|
// Flags.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 13/10/2021.
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Flags_hpp
|
|
#define Flags_hpp
|
|
|
|
namespace Amiga {
|
|
|
|
enum class InterruptFlag: uint16_t {
|
|
SerialPortTransmit = 1 << 0,
|
|
DiskBlock = 1 << 1,
|
|
Software = 1 << 2,
|
|
IOPortsAndTimers = 1 << 3, // i.e. CIA A.
|
|
Copper = 1 << 4,
|
|
VerticalBlank = 1 << 5,
|
|
Blitter = 1 << 6,
|
|
AudioChannel0 = 1 << 7,
|
|
AudioChannel1 = 1 << 8,
|
|
AudioChannel2 = 1 << 9,
|
|
AudioChannel3 = 1 << 10,
|
|
SerialPortReceive = 1 << 11,
|
|
DiskSyncMatch = 1 << 12,
|
|
External = 1 << 13, // i.e. CIA B.
|
|
};
|
|
|
|
enum class DMAFlag: uint16_t {
|
|
AudioChannel0 = 1 << 0,
|
|
AudioChannel1 = 1 << 1,
|
|
AudioChannel2 = 1 << 2,
|
|
AudioChannel3 = 1 << 3,
|
|
Disk = 1 << 4,
|
|
Sprites = 1 << 5,
|
|
Blitter = 1 << 6,
|
|
Copper = 1 << 7,
|
|
Bitplane = 1 << 8,
|
|
AllBelow = 1 << 9,
|
|
BlitterPriority = 1 << 10,
|
|
BlitterZero = 1 << 13,
|
|
BlitterBusy = 1 << 14,
|
|
};
|
|
|
|
};
|
|
|
|
#endif /* Flags_hpp */
|