24 lines
490 B
Swift
24 lines
490 B
Swift
//
|
|
// MemoryOverride.swift
|
|
// FruitMachine
|
|
//
|
|
// Created by Christopher Rohl on 7/26/17.
|
|
// Copyright © 2017 Christopher Rohl. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
|
|
class MemoryOverride: NSObject {
|
|
let rangeStart: UInt16
|
|
let rangeEnd: UInt16
|
|
|
|
let action: (CPU, UInt8?) -> UInt8?
|
|
|
|
init(start: UInt16, end: UInt16, action: @escaping (AnyObject, UInt8?) -> UInt8?) {
|
|
rangeStart = start
|
|
rangeEnd = end
|
|
|
|
self.action = action
|
|
}
|
|
}
|