Changeset 30 for trunk/BOOTCODE/SPECIAL/FAT16.ASM
- Timestamp:
- May 6, 2011, 4:25:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BOOTCODE/SPECIAL/FAT16.ASM
r29 r30 20 20 ;--------------------------------------------------------------------------- 21 21 22 IFDEF ModuleNames 23 DB 'FAT16',0 24 ENDIF 25 22 26 ; Here is access code for accessing FAT-16 partitions. It's not a complete 23 27 ; File-API and only for simple readonly-access. … … 27 31 ; I did not want to code silly cylinder stuff here. I have also used 28 32 ; i386 code in here, because Linux requires so as well. Please note that 29 ; I don't use i386 code anywhere (!) else in AiR-BOOT. 30 ; 33 ; I don't use i386 code anywhere (!) else in AiR-BOOT. ; Rousseau: yes you did, movezx is 386-only :-) 34 ; ; Replaced by 286 instructions. 31 35 ; Initialize FAT-16 access on specified partition (required for following xs) 32 36 ; In: DS:SI - IPT-Entry that contains a FAT-16 partition … … 131 135 mov ax, dx 132 136 sub ax, 2 ; Everything starts at Cluster 2 133 movzx bx, FAT16_SecsPerCluster 137 ;movzx bx, FAT16_SecsPerCluster 138 mov bl,FAT16_SecsPerCluster 139 mov bh,0 140 134 141 mul bx 135 142 shl edx, 16 … … 145 152 add di, ax 146 153 ; Finally, look for next Cluster following to this one... 147 movzx bx, dl 154 ;movzx bx, dl 155 mov bl,dl 156 mov bh,0 157 148 158 shl bx, 1 ; BX - Offset within FAT-Table 149 159 shr dx, 8 ; DX - FAT-Sector … … 259 269 pop ax 260 270 mov dx, si 261 movzx cx, ah 271 ;movzx cx, ah 272 mov cl,ah 273 mov ch,0 274 262 275 rep movsb 263 276 mov si, dx ; Restore SI
Note:
See TracChangeset
for help on using the changeset viewer.