mirror of
https://github.com/JorjBauer/aiie.git
synced 2025-02-10 21:30:49 +00:00
remove dead code
This commit is contained in:
parent
5011dd5743
commit
05529fd443
@ -1,43 +0,0 @@
|
||||
#include "pia6821.h"
|
||||
|
||||
PIA6821::PIA6821()
|
||||
{
|
||||
}
|
||||
|
||||
PIA6821::~PIA6821()
|
||||
{
|
||||
}
|
||||
|
||||
uint8_t PIA6821::read(uint8_t addr)
|
||||
{
|
||||
uint8_t rv;
|
||||
|
||||
switch (addr) {
|
||||
case DDRA:
|
||||
if (cra & 0x04) { // DDR or Peripherial Interface access control
|
||||
// peripheral
|
||||
// rv = readPeripheralA();
|
||||
// FIXME continue here
|
||||
} else {
|
||||
rv = ddra;
|
||||
}
|
||||
break;
|
||||
case CTLA:
|
||||
rv = cra;
|
||||
break;
|
||||
case DDRB:
|
||||
if (crb & 0x04) {
|
||||
// rv = readPeripheralB();
|
||||
// FIXME continue here
|
||||
} else {
|
||||
rv = ddrb;
|
||||
}
|
||||
break;
|
||||
case CTLB:
|
||||
rv = crb;
|
||||
break;
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
@ -1,31 +0,0 @@
|
||||
#ifndef _PIA6821_H
|
||||
#define _PIA6821_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// http://webpages.charter.net/coinopcauldron/piaarticle.html
|
||||
|
||||
#define DDRA 0
|
||||
#define CTLA 1
|
||||
#define DDRB 2
|
||||
#define CTLB 3
|
||||
|
||||
class PIA6821 {
|
||||
public:
|
||||
PIA6821();
|
||||
~PIA6821();
|
||||
|
||||
uint8_t read(uint8_t addr);
|
||||
|
||||
|
||||
private:
|
||||
uint8_t porta, portb;
|
||||
uint8_t ddra, ddrb;
|
||||
uint8_t cra, crb; // control registers
|
||||
/*
|
||||
2 ports - porta, portb
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user