multiline

This commit is contained in:
Able 2024-09-14 04:28:45 -05:00
parent fcca015866
commit 2b2e0c514b

View file

@ -13,7 +13,10 @@ scan_bus := fn(): void {
config_read32 := fn(bus: u32, device: u32, func: u32, offset: u32): u32 { config_read32 := fn(bus: u32, device: u32, func: u32, offset: u32): u32 {
// construct address param // construct address param
address := bus << 16 | device << 11 | func << 8 | offset & 0xFC | 0x80000000 address := bus << 16 | device << 11 | func << 8
address |= offset
address &= 0xFC
address |= 0x80000000
// write address // write address
//Port::new(0xCF8).write(address); //Port::new(0xCF8).write(address);