A 16-bit LC-2200 assembler and simulator, written entirely in Swift.
To assemble a file, give it the .s
file. It will assemble, write the output, and run it.
To run an already-assembled file, give it the .lc
file, and it will load it straight into memory.
This code was tested using the Swift 3.0 release included with Xcode 8 GM.
With the Swift open-source toolchain installed and set in your path:
swift build -c release
.build/release/LC2200Kit [filename.lc] [--debug]
Running the simulator with --debug
will enable a GDB-like debugger.
help
will print out usage information.
These (probably) need to be written at some point. :|
This simulator can also be compiled as a framework for iOS, macOS, tvOS (LOL), and watchOS (LOLOLOL). Use Swift Package Manager or Carthage to install the framework into your project.
// TODO