win7 64 bit 安装 masm32 和HLA

masm32 下载地址:

http://www.masm32.com/masmdl.htm

 

HLA主页:

http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/index.html

Download HLA:

http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/HighLevelAsm/index.html

Win Edition

http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/HighLevelAsm/WinDownload.html

 

安装masm32与hla之后:

建立批处理文件:ilha.bat

path=c:\hla;c:\masm32\bin;%path%

set lib=c:\masm32\lib;c:\hla\hlalib;%lib%

set include=c:\hla\include;c:\masm32\include;%include%

set hlainc=c:\hla\include

set hlalib=c:\hla\hlalib\hlalib.lib

  

查看编译器相关信息:

D:\Workspace\Tests\Asm>hla -?

HLA (High Level Assembler - HLABE back end, POLINK linker)
Version 2.16 build 4413 (prototype)
......

D:\Workspace\Tests\Asm>ml /?
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.


ML [ /options ] filelist [ /link linkoptions ]

....

D:\Workspace\Tests\Asm>link /?
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

usage: LINK [options] [files] [@commandfile]

.....

建立测试文件:HW.HLA

program HelloWorld;

#include( "stdlib.hhf" )

begin HelloWorld;

	stdout.put( "Hello,World of Assembly Langage", nl);

end HelloWorld;

  

编绎: cmd->c:\ihla.bat -> hla -v HW

成功后运行:

HW.exe

输出:

Hello,World of Assembly Langage

 

done!

 

 

你可能感兴趣的:(win7)