From 790f4651cc04f9fc4681c8963ebf6f906f90c9d9 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Wed, 27 Feb 2013 10:56:28 +0000 Subject: [PATCH] fix FAT16 formatting in tmpdisk git-svn-id: svn://kolibrios.org@3285 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/drivers/tmpdisk_fat.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trunk/drivers/tmpdisk_fat.inc b/kernel/trunk/drivers/tmpdisk_fat.inc index 1fe0a726f6..96f3f54480 100644 --- a/kernel/trunk/drivers/tmpdisk_fat.inc +++ b/kernel/trunk/drivers/tmpdisk_fat.inc @@ -74,7 +74,7 @@ format_disk_fat16: mov edx, eax @@: ; 2. Zero all system areas on the disk. - lea ecx, [256*(1+FAT16_ROOTDIR_SECTORS)/2+edx+255] + lea ecx, [256*(1+FAT16_ROOTDIR_SECTORS)+edx+255] and ecx, not 255 shr ecx, 1 xor eax, eax