diff options
author | iximeow <me@iximeow.net> | 2020-12-06 13:51:04 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-12-06 13:51:54 -0800 |
commit | 6df899af30920a3a9bd94670d0021ca089a64698 (patch) | |
tree | 107ac9d675c8d1768ecb662a1ef66978bc6b0747 /src | |
parent | 47a1d9d6fd48229961edf76b789328dc99a19c6c (diff) |
correctly decode I25-form immediates
extension bits are base 16, not base 10
thank you @ravenslofty for finding and reporting!
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2669,8 +2669,8 @@ fn read_i_operands(encoding: OperandEncodingI, word: &BitSlice<Lsb0, u8>) -> (Op let r1 = word[6..13].load::<u8>(); let x6 = word[27..33].load::<u8>(); let src = match x6 { - 30 => Operand::IP, - 33 => Operand::PR, + 0x30 => Operand::IP, + 0x33 => Operand::PR, _ => { // TODO: what does a bad I25 x6 get you? nop? Operand::None |