git-svn-id: https://spexeah.com:8443/svn/Asuro@190 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
4c91cd6fd9
commit
a6fc75715e
@ -276,13 +276,13 @@ end;
|
||||
function read8(bus : uint8; slot : uint8; func : uint8; offset : uint8; part : uint8) : uint8;
|
||||
begin
|
||||
loadConfig(bus, slot, func, offset);
|
||||
read8 := (inl($CFC) shr (part * 8)) and $FF;
|
||||
read8 := (inl($CFC) shr (part)) and $FF;
|
||||
end;
|
||||
|
||||
function read16(bus : uint8; slot : uint8; func : uint8; offset : uint8; part : uint8) : uint16;
|
||||
begin
|
||||
loadConfig(bus, slot, func, offset);
|
||||
read16 := (inl($CFC) shr (part * 16)) and $FFFF;
|
||||
read16 := (inl($CFC) shr (part * 2)) and $FFFF;
|
||||
end;
|
||||
|
||||
function read32(bus : uint8; slot : uint8; func : uint8; offset : uint8) : uint32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user