Compare commits
3 Commits
3be084cb82
...
3596caf106
Author | SHA1 | Date |
---|---|---|
Rekai Nyangadzayi Musuka | 3596caf106 | |
Rekai Nyangadzayi Musuka | c1be53bcb2 | |
Rekai Nyangadzayi Musuka | 072a66cfdb |
|
@ -43,7 +43,7 @@ pub fn read32(self: *const Self, addr: u32) u32 {
|
||||||
0x0000_0000...0x0000_3FFF => self.bios.get32(@as(usize, addr)),
|
0x0000_0000...0x0000_3FFF => self.bios.get32(@as(usize, addr)),
|
||||||
0x0200_0000...0x0203_FFFF => self.iwram.get32(addr - 0x0200_0000),
|
0x0200_0000...0x0203_FFFF => self.iwram.get32(addr - 0x0200_0000),
|
||||||
0x0300_0000...0x0300_7FFF => self.ewram.get32(addr - 0x0300_0000),
|
0x0300_0000...0x0300_7FFF => self.ewram.get32(addr - 0x0300_0000),
|
||||||
0x0400_0000...0x0400_03FE => self.read32(addr),
|
0x0400_0000...0x0400_03FE => self.io.read32(addr),
|
||||||
|
|
||||||
// Internal Display Memory
|
// Internal Display Memory
|
||||||
0x0500_0000...0x0500_03FF => self.ppu.palette.get32(@as(usize, addr - 0x0500_0000)),
|
0x0500_0000...0x0500_03FF => self.ppu.palette.get32(@as(usize, addr - 0x0500_0000)),
|
||||||
|
|
|
@ -76,6 +76,7 @@ pub fn dataProcessing(comptime I: bool, comptime S: bool, comptime instrKind: u4
|
||||||
0xC => {
|
0xC => {
|
||||||
// ORR
|
// ORR
|
||||||
const result = cpu.r[op1] | op2;
|
const result = cpu.r[op1] | op2;
|
||||||
|
cpu.r[rd] = result;
|
||||||
|
|
||||||
if (S and rd != 0xF) {
|
if (S and rd != 0xF) {
|
||||||
cpu.cpsr.n.write(result >> 31 & 1 == 1);
|
cpu.cpsr.n.write(result >> 31 & 1 == 1);
|
||||||
|
|
Loading…
Reference in New Issue