mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-09 15:39:08 +00:00
Completed bridge interface.
This commit is contained in:
parent
fe17d1778c
commit
25a5455d33
@ -10,6 +10,12 @@
|
||||
#include "6532.hpp"
|
||||
|
||||
class VanillaRIOT: public MOS::MOS6532<VanillaRIOT> {
|
||||
public:
|
||||
uint8_t get_port_input(int port)
|
||||
{
|
||||
return input[port];
|
||||
}
|
||||
uint8_t input[2];
|
||||
};
|
||||
|
||||
@implementation MOS6532Bridge
|
||||
@ -37,4 +43,14 @@ class VanillaRIOT: public MOS::MOS6532<VanillaRIOT> {
|
||||
return _riot.get_inerrupt_line();
|
||||
}
|
||||
|
||||
- (void)setPortAInput:(uint8_t)portAInput
|
||||
{
|
||||
_riot.input[0] = _portAInput = portAInput;
|
||||
}
|
||||
|
||||
- (void)setPortBInput:(uint8_t)portBInput
|
||||
{
|
||||
_riot.input[1] = _portBInput = portBInput;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user