Bitu readw(PhysPt addr) { addr = PAGING_GetPhysicalAddress(addr) & vgapages.mask; addr += vga.svga.bank_read_full; addr = CHECKED2(addr); return (readHandler(addr+0) << 0) | (readHandler(addr+1) << 8); }
Bitu readd(PhysPt addr) { addr = PAGING_GetPhysicalAddress(addr) & vgapages.mask; addr += vga.svga.bank_read_full; addr = CHECKED2(addr); Bitu ret = (readHandler(addr+0) << 0); ret |= (readHandler(addr+1) << 8); ret |= (readHandler(addr+2) << 16); ret |= (readHandler(addr+3) << 24); return ret; }