Flatfs reading and writing files and directories done

This commit is contained in:
2022-02-03 01:21:37 +00:00
parent f88a282893
commit 27177979a2
2 changed files with 110 additions and 70 deletions
+4 -4
View File
@@ -340,7 +340,7 @@ begin
console.writestringln('IDE (writePIO28) ERROR: Invalid LBA!'); console.writestringln('IDE (writePIO28) ERROR: Invalid LBA!');
end; end;
push_trace('IDE.readPIO28.2'); // push_trace('IDE.readPIO28.2');
//Add last 4 bits of LBA to device port //Add last 4 bits of LBA to device port
if IDEDevices[drive].isMaster then begin if IDEDevices[drive].isMaster then begin
@@ -352,7 +352,7 @@ begin
device_select($F0 or ((LBA and $0F000000) shr 24)); //LBA primary slave device_select($F0 or ((LBA and $0F000000) shr 24)); //LBA primary slave
end; end;
push_trace('IDE.readPIO28.3'); // push_trace('IDE.readPIO28.3');
no_interrupt(device); no_interrupt(device);
port_write(ATA_REG_ERROR, 0); port_write(ATA_REG_ERROR, 0);
@@ -363,7 +363,7 @@ begin
port_write(ATA_REG_LBA1, (LBA and $0000FF00) shr 8); port_write(ATA_REG_LBA1, (LBA and $0000FF00) shr 8);
port_write(ATA_REG_LBA2, (LBA and $00FF0000) shr 16); port_write(ATA_REG_LBA2, (LBA and $00FF0000) shr 16);
push_trace('IDE.readPIO28.4'); // push_trace('IDE.readPIO28.4');
//send read command //send read command
port_write(ATA_REG_COMMAND, ATA_CMD_READ_PIO); port_write(ATA_REG_COMMAND, ATA_CMD_READ_PIO);
@@ -381,7 +381,7 @@ begin
i:= i + 2; i:= i + 2;
end; end;
push_trace('IDE.readPIO28.5'); // push_trace('IDE.readPIO28.5');
end; end;
procedure writePIO28(drive : uint8; LBA : uint32; buffer : puint8); procedure writePIO28(drive : uint8; LBA : uint32; buffer : puint8);
File diff suppressed because it is too large Load Diff