Skip to content

Instantly share code, notes, and snippets.

Peter Delevoryas peterdelevoryas

Block or report user

Report or block peterdelevoryas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#[derive(Debug, PartialEq)]
enum State {
Waiting { waiting_time: usize },
Filling { rate: usize },
#[derive(Debug, Clone, Copy)]
enum Event {
type Reg = usize;
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
struct Cpu {
reg: [isize; 3]
impl Cpu {
fn mov(&mut self, src: Reg, dst: Reg) {
You can’t perform that action at this time.