Skip to content

Instantly share code, notes, and snippets.

View ishitatsuyuki's full-sized avatar

Tatsuyuki Ishi ishitatsuyuki

View GitHub Profile
use itertools::Itertools;
use std::io;
#[derive(Debug, Default)]
struct VM {
pc: usize,
opcode: i32,
mem: Vec<i32>,
input_state: usize,
phase: i32,
# 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.