90 likes | 242 Views
Assembly Language. High-Level Language Interface. Examples. Inline assembly code Encode.cpp translat.cpp translat.h. Examples. Linking to C/C++ in protected mode AsmFindArray.asm findArr.cpp findarr.h main.cpp. Examples. Calling C and C++ functions main.cpp subr.asm. Examples.
E N D
Assembly Language High-Level Language Interface
Examples • Inline assembly code • Encode.cpp • translat.cpp • translat.h
Examples • Linking to C/C++ in protected mode • AsmFindArray.asm • findArr.cpp • findarr.h • main.cpp
Examples • Calling C and C++ functions • main.cpp • subr.asm
Examples • Calling C library functions • asmMain.asm • main.cpp
Examples • Calling C library functions • asmMain.asm • startup.cpp
Exercise 1 • Modify the FindArray and AsmFindArray procedures from the previous examples. Name your functions FindRevArray and AsmFindRevArray, and let them search backward from the end of the array. Return the index of the first matching value, or if no match is found, return -1.
Due date: 96/1/11 • ftp://eec751@ftp.csie.nuk.edu.tw • Zip your files as a09xxxxx_960104.zip