1 / 20

CSCI 2510 Tutorial 2 Setting up Assembly Programming Environment

CSCI 2510 Tutorial 2 Setting up Assembly Programming Environment. ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong wzong@cse.cuhk.edu.hk. Main topic:. 1, Introduction to Tools 2, A “Hello world” Demo 3, A “Move-Add” Demo. Introduction to Tools.

terris
Download Presentation

CSCI 2510 Tutorial 2 Setting up Assembly Programming Environment

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. CSCI 2510 Tutorial 2Setting up Assembly Programming Environment ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kongwzong@cse.cuhk.edu.hk

  2. Main topic: 1, Introduction to Tools 2, A “Hello world” Demo 3, A “Move-Add” Demo

  3. Introduction to Tools • Visual C++ 2008 Express download link: go.microsoft.com/?linkid=7729279

  4. Introduction to Tools • Win32 Console Application

  5. Introduction to Tools • Check Empty project, click Finish

  6. Introduction to Tools • Click Next >

  7. Introduction to Tools • Menu “Project”->”Custom Build Rules” • Check “Microsoft Macro Assembler”

  8. Introduction to Tools • Menu “Project”->”Add New Item” .asm extension

  9. A “Hello world” Demo • Menu “Project” -> “Properties”

  10. A “Hello world” Demo • Copy the following code

  11. A “Hello world” Demo • Menu “Build” -> “Build Solution”, or F7 • Menu “Debug” -> “Start Debugging”, or F5

  12. A “Hello world” Demo • F10 Step Over

  13. A “Hello world” Demo • Menu Debug -> Windows -> Disassembly • Alt + 8

  14. A “Hello world” Demo • Right click msgbox.asm, click Properties • Excluded From Build -> Yes

  15. A “Move-Add” Demo • Copy the following code

  16. A “Move-Add” Demo • Right click Source Files -> Add -> New Item

  17. A “Move-Add” Demo • Press F10 to debug • Registers window

  18. Related links • Course homepage & source code (lib): • http://www.cse.cuhk.edu.hk/~stmak/csci2510/Welcome.html

  19. Review: 1, Introduction to Tools (VC2008) 2, “Hello world” Demo 3, “Move-Add” Demo

  20. Thank You(Q & A)

More Related