Author: hbelusca
Date: Fri Jan 23 22:21:09 2015
New Revision: 66082
URL:
http://svn.reactos.org/svn/reactos?rev=66082&view=rev
Log:
[DOSMBR]
- tab --> 4-spaces.
- add some Uppercases at the beginning of sentences...
Modified:
trunk/reactos/boot/freeldr/bootsect/dosmbr.S
trunk/reactos/boot/freeldr/bootsect/dosmbr.asm
Modified: trunk/reactos/boot/freeldr/bootsect/dosmbr.S
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/bootsect/dosm…
==============================================================================
--- trunk/reactos/boot/freeldr/bootsect/dosmbr.S [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/bootsect/dosmbr.S [iso-8859-1] Fri Jan 23 22:21:09 2015
@@ -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(a)users.sourceforge.net)
*/
@@ -58,7 +58,7 @@
/*****************************************************************/
call print
- .asciz "no active partition found"
+ .asciz "No active partition found"
WAIT_FOR_REBOOT:
jmp WAIT_FOR_REBOOT
@@ -67,22 +67,22 @@
/*****************************************************************/
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 @@
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 @@
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.
Modified: trunk/reactos/boot/freeldr/bootsect/dosmbr.asm
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/bootsect/dosm…
==============================================================================
--- trunk/reactos/boot/freeldr/bootsect/dosmbr.asm [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/bootsect/dosmbr.asm [iso-8859-1] Fri Jan 23 22:21:09 2015
@@ -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(a)users.sourceforge.net)
;
@@ -53,7 +53,7 @@
;*****************************************************************
call print
- db 'no active partition found',0
+ db 'No active partition found',0
WAIT_FOR_REBOOT:
jmp $
@@ -62,14 +62,14 @@
;*****************************************************************
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 @@
active_partition_found:
; call print
-; db 'loading active partition',0
+; db 'Loading active partition',0
call read_boot_sector