mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-18 08:24:17 +00:00
25 lines
612 B
Objective-C
25 lines
612 B
Objective-C
//
|
|
// TestMachineZ80.h
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 16/05/2017.
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef NS_ENUM(NSInteger, CSTestMachineZ80Register) {
|
|
CSTestMachineZ80RegisterProgramCounter,
|
|
CSTestMachineZ80RegisterStackPointer,
|
|
};
|
|
|
|
@interface CSTestMachineZ80 : NSObject
|
|
|
|
- (void)setData:(NSData *)data atAddress:(uint16_t)startAddress;
|
|
- (void)runForNumberOfCycles:(int)cycles;
|
|
|
|
- (void)setValue:(uint16_t)value forRegister:(CSTestMachineZ80Register)reg;
|
|
- (uint16_t)valueForRegister:(CSTestMachineZ80Register)reg;
|
|
|
|
@end
|