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

24 lines
506 B
Swift
Raw Normal View History

//
// 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
2017-08-03 04:31:12 +00:00
let action: (CPU, UInt16, UInt8?) -> UInt8?
2017-08-03 04:31:12 +00:00
init(start: UInt16, end: UInt16, action: @escaping (AnyObject, UInt16, UInt8?) -> UInt8?) {
rangeStart = start
rangeEnd = end
self.action = action
}
}