FruitMachine-Swift/FruitMachine/M6502/Memory/MemoryOverride.swift

24 lines
506 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, UInt16, UInt8?) -> UInt8?
init(start: UInt16, end: UInt16, action: @escaping (AnyObject, UInt16, UInt8?) -> UInt8?) {
rangeStart = start
rangeEnd = end
self.action = action
}
}