From 8341c4fa75ced799c5e681682ddb1357b3b6a55b Mon Sep 17 00:00:00 2001 From: Filip Parag Date: Thu, 7 Dec 2023 23:56:19 +0100 Subject: [PATCH] swap registers in store instruction --- Cargo.toml | 2 +- src/instructions/to_vhdl.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cfc5c83..44cb3bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lprsemu" -version = "0.4.3" +version = "0.4.4" edition = "2021" authors = ["Filip Parag "] license = "MIT" diff --git a/src/instructions/to_vhdl.rs b/src/instructions/to_vhdl.rs index e4a8d4d..35dc06d 100644 --- a/src/instructions/to_vhdl.rs +++ b/src/instructions/to_vhdl.rs @@ -40,7 +40,7 @@ impl ToVhdl for MemoryInstruction { fn to_vhdl(&self) -> String { match *self { Self::Load(rz, ry) => format!("100000{}", encode_registers(rz, EMPTY_REG, ry)), - Self::Store(rx, ry) => format!("110000{}", encode_registers(rx, ry, EMPTY_REG)), + Self::Store(rx, ry) => format!("110000{}", encode_registers(EMPTY_REG, rx, ry)), } } }