1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

Set every single key to be NMI, in order to be able to progress with the diagnostics cartridge.

This commit is contained in:
Thomas Harte 2016-10-13 18:56:55 -04:00
parent 69920a4979
commit 0ca383ecd1
2 changed files with 19 additions and 4 deletions

View File

@ -7,7 +7,8 @@
//
#import "CSMachine.h"
#import "CSKeyboardMachine.h"
@interface CSOric : CSMachine
@interface CSOric : CSMachine <CSKeyboardMachine>
@end

View File

@ -15,11 +15,13 @@
#import "NSData+StdVector.h"
#import "NSBundle+DataResource.h"
@implementation CSOric {
@implementation CSOric
{
Oric::Machine _oric;
}
- (instancetype)init {
- (instancetype)init
{
self = [super init];
if(self)
{
@ -34,8 +36,20 @@
return [[NSBundle mainBundle] dataForResource:name withExtension:@"rom" subdirectory:@"ROMImages/Oric"];
}
- (CRTMachine::Machine * const)machine {
- (CRTMachine::Machine * const)machine
{
return &_oric;
}
#pragma mark - CSKeyboardMachine
- (void)setKey:(uint16_t)key isPressed:(BOOL)isPressed
{
_oric.set_nmi_line(isPressed);
}
- (void)clearAllKeys
{
}
@end