• 沒有找到結果。

A Tutorial of Writing MASM with VC++ 2005 Express

N/A
N/A
Protected

Academic year: 2022

Share "A Tutorial of Writing MASM with VC++ 2005 Express"

Copied!
22
0
0
顯示更多 ( 頁)

全文

(1)

CMLab Graphics

A Tutorial of Writing MASM with VC++ 2005 Express

Presented by Ken-Yi Lee

(2)

CMLab Graphics Assembly Language 2007

MASM

Microsoft Macro Assembler

-

MASM 8.0 included with Visual C++ 2005

-

You can download MASM 8.0 and install it with Visual C++ 2005 Express by yourself

2

(3)

CMLab Graphics Assembly Language 2007

What do you need ?

helloworld.asm

helloworld.obj

helloworld.exe

Assembler (ml.exe)

Linker (link.exe)

Include Files

Which

Debugger Editor

Where

Object File Libraries

Which Where

(4)

CMLab Graphics Assembly Language 2007

Visual C++ 2005 Express with MASM 8.0

Visual C++ 2005 Express

-

Editor, Linker, and Debugger

Custom build rules

Set library paths and library dependencies [if

needed]

Select “console” as your subsystem MASM 8.0

-

Assembler

Set include paths [if needed]

4

(5)

CMLab Graphics Assembly Language 2007

Visual C++ 2005 Express with MASM 8.0 (contd.)

Download and Install Visual C++ 2005 Express

-

http://0rz.tw/253mH

Download and Install MASM 8.0

-

http://0rz.tw/8d1Xn

You should install VC 2005 Express first

(6)

CMLab Graphics

Hello MASM !

A simple example to set up the environment

(7)

CMLab Graphics Assembly Language 2007

HelloMASM

-

My Settings:

Project Name: HelloMASM

Solution Name: HelloMASM

Source code filename: hellomasm.asm

Additional library dependencies: Irvine32.lib user32.lib

Used headers: Irvine32.inc

Additional library Paths: C:\irvine\

Additional Include Paths: C:\irvine\

(8)

CMLab Graphics Assembly Language 2007

Create a new project

[ File > New > Project ], [ Visual C++ > emptyproj ]

-

Enter a name for your project

8

(9)

CMLab Graphics Assembly Language 2007

(10)

CMLab Graphics Assembly Language 2007

Custom Build Rules

Right click on the project name in the solution explorer window and select

“Custom Build Rules”

-

Turn on “Microsoft Macro Assembler”

10

(11)

CMLab Graphics Assembly Language 2007

(12)

CMLab Graphics Assembly Language 2007

Select “Console” as subsystem

Right click on the project name in the solution explorer window and select

“Properties”

-

[ Configuration Properties > Linker >

System > Subsystem ]

Select “Console”

12

(13)

CMLab Graphics Assembly Language 2007

(14)

CMLab Graphics Assembly Language 2007

To work with other libraries

In the same window,

-

[ Configuration Properties > Linker >

General > Additional Library Directories ]

Enter the paths to library files

-

[ Configuration Properties > Linker > Input

> Additional Dependency ]

Enter library filenames

14

(15)

CMLab Graphics Assembly Language 2007

(16)

CMLab Graphics Assembly Language 2007

To work with other libraries (contd.)

-

[ Configuration Properties > Microsoft Macro Assembler > General > Include Paths ]

Enter the paths to your header files

16

(17)

CMLab Graphics Assembly Language 2007

(18)

CMLab Graphics Assembly Language 2007

Add a new file

Right click on “Source file” in the solution explorer window and select “Add > New Item”

[ Visual C++ > Code > C++ File (.cpp) ]

-

Enter a filename with “asm” extension Write your codes in the editor window

18

(19)

CMLab Graphics Assembly Language 2007

(20)

CMLab Graphics Assembly Language 2007

Build and Run

[ Build > Build solution ] or [ Build >

Compile ]

[ Start Debugging ] or [ Start without Debugging ]

Build, Run ... and Debug

20

(21)

CMLab Graphics Assembly Language 2007

(22)

CMLab Graphics Assembly Language 2007

22

The End

參考文獻

相關文件

– – Parotid gland > Submandibular Parotid gland > Submandibular tumor > minor gland tumor > minor gland

IV Differential diagnosis => biopsy sample => Referral to clinician with expertise in the diagnosis and management of oral disease. Indications

>> Go to page 110 for more writing practice... Listen, point

(a) In a compact metric space X, every sequence contains a subsequence converging to a point in X, i.e... Then X has the leat-upper-bound property if and only if every Cauchy

We summarize these properties as follows, using the fact that this function is just a special case of the exponential functions considered in Theorem 2 but with base b = e

可執行 Cytometer > Cleaning Modes > De-gas Flow Cell..功能。. 可執行 Cytometer > Cleaning Modes > Bubble

可執行 Cytometer > Cleaning Modes > De-gas Flow Cell..功能。. 可執行 Cytometer > Cleaning Modes > Bubble

The aim of the competition is to offer students a platform to express creatively through writing poetry in English. It also provides schools with a channel to

操作流程: 系統選單->財產管理系統->點選報廢申請單->填寫報廢申請單資料(主 單、明細)->點選確認

(網站主頁 > 課程發展 > 學習領域 > 藝術教育 > 教學資源 >視覺藝術

原因: 技術進步,加上對可攜帶音樂設備的需求增加(黑膠唱片 > 錄音帶 > CD- ROM > 迷你光碟 > SD咭 >

if left_sum>=right_sum and left_sum>=cross_sum return (left_low,left_high,left_sum). else if right_sum>=left_sum and right_sum>=cross_sum

主頁 >課程發展 >學習領域

主頁 > 課程發展 > 學習領域 > 中國語文教育 > 中國語文教育- 教學 資源 > 中國語文(中學)-教學資源

Home > Education System and Policy > Primary and Secondary School Education > Applicable to Primary and Secondary School > Direct Subsidy Scheme..

If amendment is necessary, please proceed before submission: Back to Form E Main Menu > Enter Step 1: Update by Student > Select Retrieve Record after

主頁 > 培訓課程 > 課程講義 >

Show that the requirement in the definition of uniform continuity can be rephrased as follows, in terms of diameters of sets: To every  > 0 there exists a δ > 0 such that

www.edb.gov.hk> School Administration and Management> Financial Management > Notes to School Finance> References on Acceptance of Advantages and Donations by Schools

> Pupils learn successful reading strategies in the context of real reading9. > The reading experience should be enjoyable

EDB Home >Curriculum Development >Major Levels of Education >Collaborative Research and Development (“Seed”) Projects >2022/23 School

教育局主頁 > 課程發展 > 四個關鍵項目>

秋季学期期末,即十二月份,公布申请信息 -> 学生准备申请材料 -> 放假前统一提交 申请材料 -> 院内评选调剂 -> 三月份公布评选结果 -> 向对方大学提交申请