Assembly Language for Intel Assembly Language for Intel-Based

18 downloads 1395 Views 171KB Size Report
Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007. 2. • Linking to C/C++ in Real-Address Mode. Why Link ASM and HLL Programs?
Register Usage • In general, you can modify EAX, EBX, ECX, and EDX in your inline code because the compiler does not

Name Decoration

ReadSector: Source Code

Main C++ program source code ASM ReadSector procedure sourcre

Code Produced by C++ Compiler (3 of 3)

$L176: xor

al, al

$L172: ; 35 : mov pop ret

} esp, ebp ebp 0

; AL = 0

; restore stack pointer

Web site

Examples