mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 22:32:03 +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 "CSMachine.h"
|
||||||
|
#import "CSKeyboardMachine.h"
|
||||||
|
|
||||||
@interface CSOric : CSMachine
|
@interface CSOric : CSMachine <CSKeyboardMachine>
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -15,11 +15,13 @@
|
|||||||
#import "NSData+StdVector.h"
|
#import "NSData+StdVector.h"
|
||||||
#import "NSBundle+DataResource.h"
|
#import "NSBundle+DataResource.h"
|
||||||
|
|
||||||
@implementation CSOric {
|
@implementation CSOric
|
||||||
|
{
|
||||||
Oric::Machine _oric;
|
Oric::Machine _oric;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)init {
|
- (instancetype)init
|
||||||
|
{
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if(self)
|
if(self)
|
||||||
{
|
{
|
||||||
@ -34,8 +36,20 @@
|
|||||||
return [[NSBundle mainBundle] dataForResource:name withExtension:@"rom" subdirectory:@"ROMImages/Oric"];
|
return [[NSBundle mainBundle] dataForResource:name withExtension:@"rom" subdirectory:@"ROMImages/Oric"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (CRTMachine::Machine * const)machine {
|
- (CRTMachine::Machine * const)machine
|
||||||
|
{
|
||||||
return &_oric;
|
return &_oric;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma mark - CSKeyboardMachine
|
||||||
|
|
||||||
|
- (void)setKey:(uint16_t)key isPressed:(BOOL)isPressed
|
||||||
|
{
|
||||||
|
_oric.set_nmi_line(isPressed);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)clearAllKeys
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user