Compare commits
3 Commits
f7680cd824
...
77dba68a0b
Author | SHA1 | Date | |
---|---|---|---|
77dba68a0b | |||
7adc7c8802 | |||
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…
x
Reference in New Issue
Block a user