1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-05 08:26:28 +00:00

Adds an empty shell for what will be my 5380 implementation.

This commit is contained in:
Thomas Harte
2019-08-10 23:53:52 -04:00
parent bbd4e4d3dc
commit 949c1e1668
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
//
// ncr5380.cpp
// Clock Signal
//
// Created by Thomas Harte on 10/08/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#include "ncr5380.hpp"
using namespace NCR::NCR5380;
void NCR5380::write(int address, uint8_t value) {
}
uint8_t NCR5380::read(int address) {
return 0;
}

View File

@@ -0,0 +1,32 @@
//
// ncr5380.hpp
// Clock Signal
//
// Created by Thomas Harte on 10/08/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#ifndef ncr5380_hpp
#define ncr5380_hpp
#include <cstdint>
namespace NCR {
namespace NCR5380 {
/*!
Models the NCR 5380, a SCSI interface chip.
*/
class NCR5380 {
public:
/*! Writes @c value to @c address. */
void write(int address, uint8_t value);
/*! Reads from @c address. */
uint8_t read(int address);
};
}
}
#endif /* ncr5380_hpp */