├── .gitignore ├── LICENSE ├── Package.swift ├── README.md ├── Sources ├── SwiftNes │ ├── Components │ │ ├── Global.swift │ │ └── Nes.swift │ └── HW │ │ ├── Bus.swift │ │ ├── Cpu+AddressingModes.swift │ │ ├── Cpu+Instructions.swift │ │ ├── Cpu+Opcodes.swift │ │ ├── Cpu+Registers.swift │ │ ├── Cpu.swift │ │ └── Memory.swift └── SwiftNesMain │ └── main.swift └── Tests └── SwiftNESTests ├── CPU+Instructions ├── ADCTests.swift ├── ANDTests.swift ├── ASLTests.swift ├── BCCTests.swift ├── BCSTests.swift ├── BEQTests.swift ├── BITTests.swift ├── BMITests.swift ├── BNETests.swift ├── BPLTests.swift ├── BRKTests.swift ├── BVCTests.swift ├── BVSTests.swift ├── CLCTests.swift ├── CLDTests.swift ├── CLITests.swift ├── CLVTests.swift ├── CMPTests.swift ├── CPXTests.swift ├── CPYTests.swift ├── DECTests.swift ├── DEXTests.swift ├── DEYTests.swift ├── EORTests.swift ├── INCTests.swift ├── INXTests.swift ├── INYTests.swift ├── JMPTests.swift ├── JSRTests.swift ├── LDATests.swift ├── LDXTests.swift ├── LDYTests.swift ├── LSRTests.swift ├── NOPTests.swift ├── ORATests.swift ├── PHATests.swift ├── PHPTests.swift ├── PLATests.swift ├── PLPTests.swift ├── ROLTests.swift ├── RORTests.swift ├── RTITests.swift ├── SBCTests.swift ├── SECTests.swift ├── SEDTests.swift ├── SEITests.swift ├── STATests.swift ├── STXTests.swift ├── STYTests.swift ├── TAXTests.swift ├── TAYTests.swift ├── TSXTests.swift ├── TXATests.swift ├── TXSTests.swift └── TYATests.swift ├── CPUTests.swift └── SwiftNesTests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .swiftpm 3 | .build 4 | Package.resolved 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/LICENSE -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Package.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/README.md -------------------------------------------------------------------------------- /Sources/SwiftNes/Components/Global.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/Components/Global.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/Components/Nes.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/Components/Nes.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/HW/Bus.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/HW/Bus.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/HW/Cpu+AddressingModes.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/HW/Cpu+AddressingModes.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/HW/Cpu+Instructions.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/HW/Cpu+Instructions.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/HW/Cpu+Opcodes.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/HW/Cpu+Opcodes.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/HW/Cpu+Registers.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/HW/Cpu+Registers.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/HW/Cpu.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/HW/Cpu.swift -------------------------------------------------------------------------------- /Sources/SwiftNes/HW/Memory.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNes/HW/Memory.swift -------------------------------------------------------------------------------- /Sources/SwiftNesMain/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Sources/SwiftNesMain/main.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/ADCTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/ADCTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/ANDTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/ANDTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/ASLTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/ASLTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BCCTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BCCTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BCSTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BCSTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BEQTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BEQTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BITTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BITTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BMITests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BMITests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BNETests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BNETests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BPLTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BPLTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BRKTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BRKTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BVCTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BVCTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/BVSTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/BVSTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/CLCTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/CLCTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/CLDTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/CLDTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/CLITests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/CLITests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/CLVTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/CLVTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/CMPTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/CMPTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/CPXTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/CPXTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/CPYTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/CPYTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/DECTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/DECTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/DEXTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/DEXTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/DEYTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/DEYTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/EORTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/EORTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/INCTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/INCTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/INXTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/INXTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/INYTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/INYTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/JMPTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/JMPTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/JSRTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/JSRTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/LDATests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/LDATests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/LDXTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/LDXTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/LDYTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/LDYTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/LSRTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/LSRTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/NOPTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/NOPTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/ORATests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/ORATests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/PHATests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/PHATests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/PHPTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/PHPTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/PLATests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/PLATests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/PLPTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/PLPTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/ROLTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/ROLTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/RORTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/RORTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/RTITests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/RTITests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/SBCTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/SBCTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/SECTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/SECTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/SEDTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/SEDTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/SEITests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/SEITests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/STATests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/STATests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/STXTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/STXTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/STYTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/STYTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/TAXTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/TAXTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/TAYTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/TAYTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/TSXTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/TSXTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/TXATests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/TXATests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/TXSTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/TXSTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPU+Instructions/TYATests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPU+Instructions/TYATests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/CPUTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/CPUTests.swift -------------------------------------------------------------------------------- /Tests/SwiftNESTests/SwiftNesTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tib/SwiftNES/HEAD/Tests/SwiftNESTests/SwiftNesTests.swift --------------------------------------------------------------------------------