mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +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:
parent
69920a4979
commit
0ca383ecd1
@ -7,7 +7,8 @@
|
||||
//
|
||||
|
||||
#import "CSMachine.h"
|
||||
#import "CSKeyboardMachine.h"
|
||||
|
||||
@interface CSOric : CSMachine
|
||||
@interface CSOric : CSMachine <CSKeyboardMachine>
|
||||
|
||||
@end
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user