xfb loop copy finished

This commit is contained in:
2026-05-13 17:46:37 +02:00
parent 9c3a6789f6
commit d057a31269
6 changed files with 257 additions and 38 deletions
+25
View File
@@ -18,6 +18,14 @@ void video_interface::write16(ircolib::u32 addr, ircolib::u16 value) {
case 0x02:
dcr.raw = value;
break;
case 0x4a:
hsr.raw = value;
break;
case 0x6c:
viclk = value & 1;
break;
case 0x70:
break;
default:
ircolib::panic("video_interface::write16 to unimplemented addr 0x{:04X} with value 0x{:04X}", addr, value);
}
@@ -46,6 +54,23 @@ void video_interface::write32(ircolib::u32 addr, ircolib::u32 value) {
case 0x18:
bboi.raw = value;
break;
case 0x1c:
tfbl.raw = value;
break;
case 0x24:
bfbl.raw = value;
break;
case 0x4c:
case 0x50:
case 0x54:
fct0[addr - 0x4c].raw = value;
break;
case 0x58:
case 0x5c:
case 0x60:
case 0x64:
fct1[addr - 0x58].raw = value;
break;
default:
ircolib::panic("video_interface::write32 to unimplemented addr 0x{:04X} with value 0x{:08X}", addr, value);
}
+56
View File
@@ -79,5 +79,61 @@ struct video_interface {
ircolib::u32 raw;
} bbei, bboi;
union TFBL {
struct {
unsigned : 9;
unsigned fbb : 15;
unsigned xof : 4;
unsigned : 4;
};
ircolib::u32 raw;
} tfbl;
union BFBL {
struct {
unsigned : 9;
unsigned fbb : 15;
unsigned y : 8;
};
ircolib::u32 raw;
} bfbl;
union FCT012 {
struct {
unsigned tap0 : 10;
unsigned tap1 : 10;
unsigned tap2 : 10;
unsigned : 2;
};
ircolib::u32 raw;
} fct0[3];
union FCT3456 {
struct {
unsigned tap0 : 8;
unsigned tap1 : 8;
unsigned tap2 : 8;
unsigned tap3 : 8;
};
ircolib::u32 raw;
} fct1[4];
union HSR {
struct {
unsigned stp : 9;
unsigned : 3;
unsigned hs_en : 1;
unsigned : 3;
};
ircolib::u16 raw;
} hsr;
bool viclk;
};
} // namespace weee::core