My routine:
Function SectorWrite, should write a sector to a disk directly
My code fragment:
My environment:
Running in the PB editor in a DOS box under Windows 95.
My problem:
Every time the program is run, the function signals that the call failed,
and indeed, the sector was not written to the disk... However when the above
code is run step by step (F7) in the PB editor, the carry flag is NOT set,
and the sector is written to disk properly... All the other routines (like
SectorRead) work fine any time...
My question:
What can cause the difference in the execution of this interrupt function?
Could the Windows 95 direct disk access protection (without locking the drive)
have been avoided somehow by the step by step execution?
Does anyone know how this can be solved, so I can run the function correctly?
Kind regards,
------------------
Sebastian Groeneveld
mailto:[email protected][email protected]</A>
Function SectorWrite, should write a sector to a disk directly
My code fragment:
Code:
! push ds ! mov ah, &H43 ; function 'extended write' ! mov al, 0 ; no verify ! mov dl, &H80 ; hard disk 0 ! mov si, DAPofs ; ! mov ds, DAPseg ; pointer to Disk Address Packet ! int &H13 ! pop ds ! jc SectorWriteFailed
Running in the PB editor in a DOS box under Windows 95.
My problem:
Every time the program is run, the function signals that the call failed,
and indeed, the sector was not written to the disk... However when the above
code is run step by step (F7) in the PB editor, the carry flag is NOT set,
and the sector is written to disk properly... All the other routines (like
SectorRead) work fine any time...
My question:
What can cause the difference in the execution of this interrupt function?
Could the Windows 95 direct disk access protection (without locking the drive)
have been avoided somehow by the step by step execution?
Does anyone know how this can be solved, so I can run the function correctly?
Kind regards,
------------------
Sebastian Groeneveld
mailto:[email protected][email protected]</A>
Comment