mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-28 21:49:27 +00:00
9be23ecc34
Along with a slightly easier path for posting interrupts, in C++ compilation unit terms.
34 lines
666 B
C++
34 lines
666 B
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.
|
|
};
|
|
|
|
};
|
|
|
|
#endif /* Flags_hpp */
|