From e5423f156bf52bf5a5cbf64e1801106a16e9e038 Mon Sep 17 00:00:00 2001 From: Brian Palmer Date: Wed, 22 May 2002 22:15:28 +0000 Subject: [PATCH] Compared the output of fat.asm from nasm v0.98 and nasm v0.98.32. Modified fat.asm to produce the same output under both versions. svn path=/trunk/; revision=2973 --- freeldr/bootsect/fat.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freeldr/bootsect/fat.asm b/freeldr/bootsect/fat.asm index b5c27b10436..7562e4adc40 100644 --- a/freeldr/bootsect/fat.asm +++ b/freeldr/bootsect/fat.asm @@ -178,7 +178,7 @@ SearchRootDirSector: add di,BYTE +0x20 ; Increment DI by the size of a directory entry cmp di,0200h ; Compare DI to 512 (DI has offset to next dir entry, make sure we haven't gone over one sector) jc SearchRootDirSector ; If DI is less than 512 loop again - jmp LoadRootDirSector ; Didn't find FREELDR.SYS in this directory sector, try again + jmp short LoadRootDirSector ; Didn't find FREELDR.SYS in this directory sector, try again FoundFreeLoader: ; We found freeldr.sys on the disk @@ -258,7 +258,7 @@ BadBoot: mov si,msgAnyKey ; Press any key message call PutChars ; Display it - jmp Reboot + jmp short Reboot ; Reads logical sectors into [ES:BX] ; DX:AX has logical sector number to read