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