Presentation is loading. Please wait.

Presentation is loading. Please wait.

ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong

Similar presentations


Presentation on theme: "ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong"— Presentation transcript:

1 ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong wzong@cse.cuhk.edu.hk

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

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

4 Win32 Console Application

5 Check Empty project, click Finish

6 Click Next >

7 Menu “ Project ” -> ” Custom Build Rules ” Check “Microsoft Macro Assembler”

8 Menu “ Project ” -> ” Add New Item ”. asm extension

9 Menu “Project” -> “Properties”

10 Copy the following code

11 Menu “Build” -> “Build Solution”, or F7 Menu “Debug” -> “Start Debugging”, or F5

12 F10 Step Over

13 Menu Debug -> Windows -> Disassembly Alt + 8

14 Right click msgbox.asm, click Properties Excluded From Build -> Yes

15 Copy the following code

16 Right click Source Files -> Add -> New Item

17 Press F10 to debug Registers window

18 Course homepage & source code ( lib ): http://www.cse.cuhk.edu.hk/~stmak/csci2510/Wel come.html

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

20


Download ppt "ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong"

Similar presentations


Ads by Google