FAT12 Question
Posted: Sat Jun 07, 2008 2:24 pm
Where can I get an official FAT12 file system specification?
Thanks in advance.
Thanks in advance.
That was kinda rude, I believe he was only trying to help you.renovatio wrote:isn't that reference about FAT32???? i need about fat12... but thanks anyway!!!!!!!!!!
and I gave you what was necessary, you just needed to read on a bit...Brynet-Inc wrote:That was kinda rude, I believe he was only trying to help you.renovatio wrote:isn't that reference about FAT32???? i need about fat12... but thanks anyway!!!!!!!!!!
Code: Select all
org 100h
mov ah, 2h
mov al, 14
mov bx, fat
mov ch, 1
mov cl, 1
mov dh, 0
mov dl, 0
int 13h
mov si, fat
print_again:
mov al, [si]
mov ah, 0eh
int 10h
mov ah, 0h
int 16h
inc si
jmp print_again
fat:
times 7168 db 0
You are reading cylinder 1, sector 1, head 0 of disk #0, so you are reading from a floppy.AH = 02h
AL = number of sectors to read (must be nonzero)
CH = low eight bits of cylinder number
CL = sector number 1-63 (bits 0-5)
high two bits of cylinder (bits 6-7, hard disk only)
DH = head number
DL = drive number (bit 7 set for hard disk)
ES:BX -> data buffer
Return:CF set on error
if AH = 11h (corrected ECC error), AL = burst length
CF clear if successful
AH = status (see #00234)
AL = number of sectors transferred (only valid if CF set for some
BIOSes)
I assume you use an ordinary 1.44 mb floppy.FATSize = (Num Fats * Sector Per FAT (9) + Reserved Sector + BootSector) = 19
CH & CL = FATSize to CHS
Code: Select all
mov ch,0 ; low eight bits of cylinder number
mov cl,2; CL = sector number 1-63 (bits 0-5) high two bits of cylinder (bits 6-7, hard disk only)
mov dh,1 ; DH = head number