From 8ee4a2015793c7cb8c24dcf61ff5fb69652b1331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 23 Jan 2015 22:21:09 +0000 Subject: [PATCH] [DOSMBR] - tab --> 4-spaces. - add some Uppercases at the beginning of sentences... svn path=/trunk/; revision=66082 --- reactos/boot/freeldr/bootsect/dosmbr.S | 32 ++++++++++++------------ reactos/boot/freeldr/bootsect/dosmbr.asm | 12 ++++----- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/reactos/boot/freeldr/bootsect/dosmbr.S b/reactos/boot/freeldr/bootsect/dosmbr.S index 49fce6338d8..a042c47680d 100644 --- a/reactos/boot/freeldr/bootsect/dosmbr.S +++ b/reactos/boot/freeldr/bootsect/dosmbr.S @@ -2,7 +2,7 @@ * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Bootsector for ISO file system * PURPOSE: Normal DOS boot sector - * Ported to nasm from FreeDOS fdisk 1.2.0 by: + * Ported to NASM from FreeDOS fdisk 1.2.0 by: * PROGRAMMERS: Casper Hornstrup (chorns@users.sourceforge.net) */ @@ -58,7 +58,7 @@ test_next_for_active: /*****************************************************************/ call print - .asciz "no active partition found" + .asciz "No active partition found" WAIT_FOR_REBOOT: jmp WAIT_FOR_REBOOT @@ -67,22 +67,22 @@ WAIT_FOR_REBOOT: /*****************************************************************/ trouble_reading_drive: call print - .asciz "read error while reading drive" + .asciz "Read error while reading drive" jmp WAIT_FOR_REBOOT /*****************************************************************/ invalid_partition_code: call print - .asciz "partition signature != 55AA" + .asciz "Partition signature != 55AA" jmp WAIT_FOR_REBOOT /*****************************************************************/ active_partition_found: -// call print -// .asciz "loading active partition" +// call print +// .asciz "Loading active partition" call read_boot_sector @@ -135,16 +135,16 @@ _bios_LBA_high: LBABios: // copy start address of partition to DAP - mov ax, [di + 8] - mov word ptr ds:[_bios_LBA_low], ax - mov ax,[di + 8 + 2] - mov word ptr ds:[_bios_LBA_high], ax + mov ax, [di + 8] + mov word ptr ds:[_bios_LBA_low], ax + mov ax,[di + 8 + 2] + mov word ptr ds:[_bios_LBA_high], ax mov ax, HEX(4200) // regs.a.x = LBA_READ; mov si, offset _bios_LBA_address_packet // regs.si = FP_OFF(&dap); - int HEX(13) - ret + int HEX(13) + ret /***************************************************************** * read disk, using standard BIOS @@ -153,15 +153,15 @@ StandardBios: mov ax, HEX(0204) // regs.a.x = 0x0201; mov bx, HEX(7c00) // regs.b.x = FP_OFF(buffer); - /* regs.c.x = + /* regs.c.x = ((chs.Cylinder & 0xff) << 8) + ((chs.Cylinder & 0x300) >> 2) + ; chs.Sector; that was easy ;-) */ - mov cx, word ptr ds:[di + 2] + mov cx, word ptr ds:[di + 2] mov dh, byte ptr ds:[di + 1] // regs.d.b.h = chs.Head; // regs.es = FP_SEG(buffer); - int HEX(13) - ret + int HEX(13) + ret /****** PRINT * prints text after call to this function. diff --git a/reactos/boot/freeldr/bootsect/dosmbr.asm b/reactos/boot/freeldr/bootsect/dosmbr.asm index 132b80b6896..23b6b94e4b6 100644 --- a/reactos/boot/freeldr/bootsect/dosmbr.asm +++ b/reactos/boot/freeldr/bootsect/dosmbr.asm @@ -1,7 +1,7 @@ ; -; normal DOS boot sector +; Normal DOS boot sector ; -; Ported to nasm from FreeDOS fdisk 1.2.0 by: +; Ported to NASM from FreeDOS fdisk 1.2.0 by: ; Casper Hornstrup (chorns@users.sourceforge.net) ; @@ -53,7 +53,7 @@ test_next_for_active: ;***************************************************************** call print - db 'no active partition found',0 + db 'No active partition found',0 WAIT_FOR_REBOOT: jmp $ @@ -62,14 +62,14 @@ WAIT_FOR_REBOOT: ;***************************************************************** trouble_reading_drive: call print - db 'read error while reading drive',0 + db 'Read error while reading drive',0 jmp WAIT_FOR_REBOOT ;***************************************************************** invalid_partition_code: call print - db 'partition signature != 55AA',0 + db 'Partition signature != 55AA',0 jmp WAIT_FOR_REBOOT @@ -78,7 +78,7 @@ invalid_partition_code: active_partition_found: ; call print -; db 'loading active partition',0 +; db 'Loading active partition',0 call read_boot_sector