CSc 343
Computer Organization and Programming
Fall Quarter 1997
Quiz #4 (19 November 1997, Wednesday) with Solutions
1CH to 1FH
Boot Record
Subdirectory
46 49 4C 45 31 20 20 20 - 41 53 4D 20 00 00 00 00 00 00 00 00 00 00 A2 A6 - 86 0F 04 00 20 00 00 00 What is the file name? FILE1 What is the file extension? ASM What does the file attribute signify? Archive File What time was the file last created or changed? 20:53:04 What date was the file last created or changed? 6 December 1987 What is the starting cluster number? 4 What is the file size? 32 bytes
8 sectors per cluster
03H
F8 FF FF FF 03 00 04 00 FF FF 06 00 FF FF 08 00 FF FF What is the meaning of the F8 byte at the beginning? Media Descriptor -- F8 stands for Hard Disk How many files are described by this portion of the FAT? 3 What is the size of the first file (in clusters)? 3 clusters
mov ah,42h mov al,00h mov bx,handle mov cx,0 mov dx,3712 int 21h
mov ah,42h mov al,2 mov bx,33 mov cx,00 mov dx,00 int 21h Size of the file in bytes