- tab --> 4-spaces.
- add some Uppercases at the beginning of sentences...

svn path=/trunk/; revision=66082
This commit is contained in:
Hermès Bélusca-Maïto
2015-01-23 22:21:09 +00:00
parent a40388d89c
commit 8ee4a20157
2 changed files with 22 additions and 22 deletions
+16 -16
View File
@@ -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.
+6 -6
View File
@@ -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 ([email protected])
;
@@ -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