2016-03-30 20:07:55 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#include "GBView.h"
|
|
|
|
|
|
|
|
@interface Document : NSDocument <NSWindowDelegate>
|
|
|
|
@property (strong) IBOutlet GBView *view;
|
|
|
|
@property (strong) IBOutlet NSTextView *consoleOutput;
|
|
|
|
@property (strong) IBOutlet NSPanel *consoleWindow;
|
|
|
|
@property (strong) IBOutlet NSTextField *consoleInput;
|
2016-06-18 14:43:39 +00:00
|
|
|
@property (strong) IBOutlet NSWindow *mainWindow;
|
2016-08-12 19:49:17 +00:00
|
|
|
@property (strong) IBOutlet NSView *memoryView;
|
|
|
|
@property (strong) IBOutlet NSPanel *memoryWindow;
|
2016-08-19 11:54:54 +00:00
|
|
|
@property (readonly) GB_gameboy_t *gameboy;
|
|
|
|
@property (strong) IBOutlet NSTextField *memoryBankInput;
|
|
|
|
@property (strong) IBOutlet NSToolbarItem *memoryBankItem;
|
2016-03-30 20:07:55 +00:00
|
|
|
|
2016-08-12 19:49:17 +00:00
|
|
|
-(uint8_t) readMemory:(uint16_t) addr;
|
|
|
|
-(void) writeMemory:(uint16_t) addr value:(uint8_t)value;
|
|
|
|
-(void) performAtomicBlock: (void (^)())block;
|
2016-03-30 20:07:55 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|