MdeModulePkg BootScriptExecutorDxe: Use NASM compatible syntax

Without this change, after converting this code to NASM, this error
will be reported:
error: invalid combination of opcode and operands

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
This commit is contained in:
Jordan Justen 2014-10-16 07:57:03 -07:00 committed by Liming Gao
parent 7e08bace8c
commit a230845601
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ AsmTransferControl PROC
shrd ebx, ecx, 20 shrd ebx, ecx, 20
and ecx, 0fh and ecx, 0fh
mov bx, cx mov bx, cx
mov @jmp_addr, ebx mov [@jmp_addr], ebx
retf retf
@@: @@:
DB 0b8h, 30h, 0 ; mov ax, 30h as selector DB 0b8h, 30h, 0 ; mov ax, 30h as selector

View File

@ -32,7 +32,7 @@ AsmTransferControl PROC
shrd ebx, ecx, 20 shrd ebx, ecx, 20
and ecx, 0fh and ecx, 0fh
mov bx, cx mov bx, cx
mov @jmp_addr, ebx mov [@jmp_addr], ebx
retf retf
@@: @@:
DB 0b8h, 30h, 0 ; mov ax, 30h as selector DB 0b8h, 30h, 0 ; mov ax, 30h as selector