Changeset 168
- Timestamp:
- Apr 8, 2017, 12:28:07 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/driveio.asm
r164 r168 1050 1050 1051 1051 DriveIO_WriteSectorLBA_exit: 1052 1053 ; Skip the removable drive check on success 1054 jnc @F 1055 1056 ; Here, CF=1 because of a failure. 1057 ; This could be from a removable drive that is set to read-only, 1058 ; in which case we want to fake success. What this boils down to 1059 ; is that CY must be set to !IsRemovable. 1060 call DriveIO_CalcDiskInfoPointer ; Get DISKINFO pointer 1061 mov dx, [bx+LocDISKINFO_I13X_Flags] ; Get INT13X flags 1062 xor dl, 04h ; Invert 'removable' bit 1063 and dl, 04h ; Mask it out 1064 rcr dl, 3 ; Move it to CY 1065 1066 @@: 1052 1067 1053 1068 ; Pop all registers
Note:
See TracChangeset
for help on using the changeset viewer.