Skip to content

Commit

Permalink
Add note.
Browse files Browse the repository at this point in the history
  • Loading branch information
thealmarty committed Apr 17, 2024
1 parent 68c9e55 commit 2650854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Word<u8> {
}
}

impl Word<u8> {
impl Word<u8> { //TODO if the byte isn't the lowest byte then this doesn't make sense?
pub fn sign_extend_byte(byte: u8, loc: usize) -> Self {
let sign = byte as i8 >> 7;
let mut result: [u8; MEMORY_CELL_BYTES] = [sign as u8; MEMORY_CELL_BYTES];
Expand Down

0 comments on commit 2650854

Please sign in to comment.