This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample TOML configuration file for building Rust. | |
# | |
# To configure rustbuild, copy this file to the directory from which you will be | |
# running the build, and name it config.toml. | |
# | |
# All options are commented out by default in this file, and they're commented | |
# out with their default values. The build system by default looks for | |
# `config.toml` in the current directory of a build for build configuration, but | |
# a custom configuration file can also be specified with `--config` to the build | |
# system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use itertools::Itertools; | |
use std::io; | |
#[derive(Debug, Default)] | |
struct VM { | |
pc: usize, | |
opcode: i32, | |
mem: Vec<i32>, | |
input_state: usize, | |
phase: i32, |