Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
swap registers in store instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
filiparag committed Dec 9, 2023
1 parent 775aa0e commit 8341c4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lprsemu"
version = "0.4.3"
version = "0.4.4"
edition = "2021"
authors = ["Filip Parag <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/instructions/to_vhdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
}
}
Expand Down

0 comments on commit 8341c4f

Please sign in to comment.