Changeset 181 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm
- Timestamp:
- Nov 13, 2011, 3:38:40 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm
r175 r181 66 66 %ifdef MODULE_SERIAL 67 67 cmp byte [cs:bp+IDEVARS.bDevice], DEVICE_SERIAL_PORT 68 jnz . around68 jnz .StoreAddressing 69 69 or byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 70 .around: 71 %endif 72 70 %endif 73 71 ; Fall to .StoreAddressing 74 72 … … 117 115 118 116 ; We need to get number of bits to shift for translation 119 push bx120 117 push ax 121 118 eMOVZX dx, bl ; Heads now in DX 122 xchg bx, ax ; Sectors now in BX 123 call AccessDPT_ShiftPCHinBXDXtoLCH 119 xchg bx, ax ; Cylinders now in BX 120 call AccessDPT_ShiftPCHinBXDXtoLCH ; Leaves AX untouched 121 xchg bx, ax ; Restore HeadsAndSectors to BX 124 122 or cl, ADDRESSING_MODE_PCHS<<ADDRESSING_MODE_FIELD_POSITION 125 123 or [di+DPT.bFlagsLow], cl ; Store bits to shift 126 124 pop ax 127 pop bx128 125 ; Fall to .StoreChsFromAXBX 129 126
Note:
See TracChangeset
for help on using the changeset viewer.