mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-16 00:29:01 +00:00
ddf1bf3cbf
For everything except the Vic-20, anyway. That has a somewhat outdated notion of what an options panel should be, corresponding to the work yet to do on its analyser.
37 lines
668 B
Plaintext
37 lines
668 B
Plaintext
//
|
|
// CSZX8081.m
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 04/06/2017.
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#import "CSZX8081.h"
|
|
|
|
#include "ZX8081.hpp"
|
|
|
|
@implementation CSZX8081 {
|
|
ZX8081::Machine *_zx8081;
|
|
__weak CSMachine *_machine;
|
|
}
|
|
|
|
- (instancetype)initWithZX8081:(void *)zx8081 owner:(CSMachine *)machine {
|
|
self = [super init];
|
|
if(self) {
|
|
_zx8081 = (ZX8081::Machine *)zx8081;
|
|
_machine = machine;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
#pragma mark - Options
|
|
|
|
- (void)setTapeIsPlaying:(BOOL)tapeIsPlaying {
|
|
@synchronized(_machine) {
|
|
_tapeIsPlaying = tapeIsPlaying;
|
|
_zx8081->set_tape_is_playing(tapeIsPlaying ? true : false);
|
|
}
|
|
}
|
|
|
|
@end
|