mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-08-09 16:24:56 +00:00
Tidy header file usage a little.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Memory.h"
|
||||
#include "Processor.h"
|
||||
#include <Memory.h>
|
||||
#include <Processor.h>
|
||||
|
||||
namespace EightBit {
|
||||
class Bus : public Memory {
|
||||
|
@@ -2,9 +2,10 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "IntelProcessor.h"
|
||||
#include <IntelProcessor.h>
|
||||
#include <Signal.h>
|
||||
|
||||
#include "Bus.h"
|
||||
#include "Signal.h"
|
||||
#include "Display.h"
|
||||
|
||||
namespace EightBit {
|
||||
|
@@ -8,7 +8,6 @@
|
||||
#include <vector>
|
||||
#include <array>
|
||||
#include <map>
|
||||
|
||||
#include <bitset>
|
||||
#include <string>
|
||||
|
||||
@@ -20,3 +19,8 @@
|
||||
#include <iomanip>
|
||||
|
||||
#include <boost/format.hpp>
|
||||
|
||||
#include <Memory.h>
|
||||
#include <Processor.h>
|
||||
#include <IntelProcessor.h>
|
||||
#include <Signal.h>
|
||||
|
@@ -7,7 +7,5 @@ namespace EightBit {
|
||||
|
||||
public:
|
||||
static EventArgs& empty() { return m_empty; }
|
||||
|
||||
EventArgs() {}
|
||||
};
|
||||
}
|
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <array>
|
||||
|
||||
#include "Signal.h"
|
||||
#include "PortEventArgs.h"
|
||||
|
||||
namespace EightBit {
|
||||
class InputOutput {
|
||||
public:
|
||||
InputOutput();
|
||||
|
||||
uint8_t read(uint8_t port) { return readInputPort(port); }
|
||||
void write(uint8_t port, uint8_t value) { return writeOutputPort(port, value); }
|
||||
|
||||
|
@@ -32,7 +32,6 @@ namespace EightBit {
|
||||
class Memory {
|
||||
public:
|
||||
Memory(uint16_t addressMask);
|
||||
virtual ~Memory();
|
||||
|
||||
// Only fired with read/write methods
|
||||
Signal<AddressEventArgs> WrittenByte;
|
||||
|
@@ -6,7 +6,7 @@ namespace EightBit {
|
||||
class PortEventArgs {
|
||||
public:
|
||||
PortEventArgs(uint8_t port)
|
||||
: m_port(port) {}
|
||||
: m_port(port) {}
|
||||
|
||||
uint8_t getPort() const {
|
||||
return m_port;
|
||||
|
@@ -1,9 +1,6 @@
|
||||
#include "stdafx.h"
|
||||
#include "InputOutput.h"
|
||||
|
||||
EightBit::InputOutput::InputOutput() {
|
||||
}
|
||||
|
||||
uint8_t EightBit::InputOutput::readInputPort(uint8_t port) {
|
||||
OnReadingPort(port);
|
||||
auto value = input[port];
|
||||
|
@@ -16,9 +16,6 @@ EightBit::Memory::Memory(uint16_t addressMask)
|
||||
m_locked.resize(0x10000);
|
||||
}
|
||||
|
||||
EightBit::Memory::~Memory() {
|
||||
}
|
||||
|
||||
uint8_t EightBit::Memory::peek(uint16_t address) {
|
||||
bool rom;
|
||||
return reference(address, rom);
|
||||
|
@@ -7,6 +7,9 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <chrono>
|
||||
#include <intrin.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include <string>
|
||||
#include <array>
|
||||
|
Reference in New Issue
Block a user