Compare commits
3 Commits
f7680cd824
...
77dba68a0b
Author | SHA1 | Date |
---|---|---|
Rekai Nyangadzayi Musuka | 77dba68a0b | |
Rekai Nyangadzayi Musuka | 7adc7c8802 | |
Rekai Nyangadzayi Musuka | 229f7c3388 |
|
@ -39,7 +39,7 @@ pub fn halfAndSignedDataTransfer(comptime P: bool, comptime U: bool, comptime I:
|
|||
},
|
||||
0b01 => {
|
||||
// LDRH
|
||||
const value = bus.read16(address & 0xFFFE);
|
||||
const value = bus.read16(address & 0xFFFF_FFFE);
|
||||
cpu.r[rd] = std.math.rotr(u32, @as(u32, value), 8 * (address & 1));
|
||||
},
|
||||
0b10 => {
|
||||
|
|
Loading…
Reference in New Issue