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:
18
Components/5380/ncr5380.cpp
Normal file
18
Components/5380/ncr5380.cpp
Normal 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;
|
||||
}
|
32
Components/5380/ncr5380.hpp
Normal file
32
Components/5380/ncr5380.hpp
Normal 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 */
|
Reference in New Issue
Block a user