in 16-bit code, cs:[] require prefix because sengment size is set 32 bits. so use $ to reference string tag directly.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7719 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2
2009-02-26 12:52:17 +00:00
parent 3519b58b4e
commit 57b6de773d
3 changed files with 14 additions and 14 deletions

View File

@@ -18,7 +18,7 @@
#.MODEL small
.stack:
.486p:
.code:
.code16:
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x020
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5
@@ -65,7 +65,7 @@ BootSectorEntryPoint:
# ****************************************************************************
# Start Print
# ****************************************************************************
leaw %cs:StartString, %si
movw $StartString, %si
call PrintString
# ****************************************************************************
@@ -261,7 +261,7 @@ NotFoundAll:
jne FoundEFILDR
BadBootSector:
DiskError:
leaw %cs:ErrorString, %si
movw $ErrorString, %si
call PrintString
Halt:
jmp Halt