]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/bs32.asm
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / DuetPkg / BootSector / bs32.asm
index f26668982e8aab11e4a9ecd8e10da1c9f0fdc3db..7105ae6030dbefd6ba0fe7b3d20eab7179d76d23 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;*\r
-;*   Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+;*   Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 ;*   This program and the accompanying materials                          \r
 ;*   are licensed and made available under the terms and conditions of the BSD License         \r
 ;*   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -36,7 +36,7 @@ Ia32Jump:
   nop\r
 \r
 OemId             db  "INTEL   "    ; OemId               - 8 bytes\r
-; BPB data below will be fixed by tool\r\r
+; BPB data below will be fixed by tool\r
 SectorSize        dw  0             ; Sector Size         - 16 bits\r
 SectorsPerCluster db  0             ; Sector Per Cluster  - 8 bits\r
 ReservedSectors   dw  0             ; Reserved Sectors    - 16 bits\r
@@ -78,7 +78,7 @@ BootSectorEntryPoint:
 ; ****************************************************************************\r
 ; Start Print\r
 ; ****************************************************************************\r
-  lea  si, cs:[StartString]\r
+  mov  si, offset StartString\r
   call PrintString\r
 \r
 ; ****************************************************************************\r
@@ -206,7 +206,7 @@ PrintString:
   mov  es,ax\r
   mov  ax, 07c0h\r
   mov  ds, ax\r
-  mov  cx, 7\r
+  mov  cx, 6\r
   mov  di, 160\r
   rep  movsw\r
   ret\r
@@ -280,15 +280,15 @@ NotFoundAll:
   jne  FoundEFILDR\r
 BadBootSector:\r
 DiskError:\r
-  lea  si, cs:[ErrorString]\r
+  mov  si, offset ErrorString\r
   call PrintString\r
 Halt:\r
   jmp   Halt\r
 \r
 StartString:\r
-  db 'B', 0ch, 'S', 0ch, 't', 0ch, 'a', 0ch, 'r', 0ch, 't', 0ch, '!', 0ch\r
+  db 'B', 0ch, 'S', 0ch, 't', 0ch, 'a', 0ch, 'r', 0ch, 't', 0ch\r
 ErrorString:\r
-  db 'B', 0ch, 'E', 0ch, 'r', 0ch, 'r', 0ch, 'o', 0ch, 'r', 0ch, '!', 0ch\r
+  db 'B', 0ch, 'E', 0ch, 'r', 0ch, 'r', 0ch, 'o', 0ch, 'r', 0ch\r
 \r
 ; ****************************************************************************\r
 ; LBA Offset for BootSector, need patched by tool for HD boot.\r