1 / 8

Assembly Language

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.

ivana
Download Presentation

Assembly Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Assembly Language High-Level Language Interface

  2. Examples • Inline assembly code • Encode.cpp • translat.cpp • translat.h

  3. Examples • Linking to C/C++ in protected mode • AsmFindArray.asm • findArr.cpp • findarr.h • main.cpp

  4. Examples • Calling C and C++ functions • main.cpp • subr.asm

  5. Examples • Calling C library functions • asmMain.asm • main.cpp

  6. Examples • Calling C library functions • asmMain.asm • startup.cpp

  7. 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.

  8. Due date: 96/1/11 • ftp://eec751@ftp.csie.nuk.edu.tw • Zip your files as a09xxxxx_960104.zip

More Related