首页
社区
课程
招聘
[旧帖] [求助] 如何使m32v9r (看雪下的)运行HELLOWORLD 0.00雪花
发表于: 2008-1-17 14:03 3646

[旧帖] [求助] 如何使m32v9r (看雪下的)运行HELLOWORLD 0.00雪花

2008-1-17 14:03
3646
以前用的是ML  LINK 。现在想看看集成环境如何。。装完运行。。打开DEMO程序。。。
无论点BULID AND LINK  还是RUN 。。。能点的地方都点了。  就是不见程序跑起来。。也不见编译,连接。。更不给个提示。。。。难道这地方下的MASM32 EDITOR不是集成环境??跑不起来??这东西就和记事本一个功能???

恳请给位大大提点下。。。。最郁闷的是这东西装完还贼大。。上百M。。。。。这个也太夸张了吧!!

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (8)
雪    币: 247
活跃值: (10)
能力值: ( LV7,RANK:100 )
在线值:
发帖
回帖
粉丝
2
最郁闷的是这东西装完还贼大。。上百M。。。。。这个也太夸张了吧!!

不会吧,装机文件才3M多
2008-1-17 15:04
0
雪    币: 247
活跃值: (10)
能力值: ( LV7,RANK:100 )
在线值:
发帖
回帖
粉丝
3
装机后大小23M,
project | run programme, 就行了。
不可能找不到的
2008-1-17 15:10
0
雪    币: 243
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
没用啊!!。。。编译都出现不了。。执行不了。。
装好后那个文件夹我点了是 23M。但是装之前和之后。我比对过该盘空间大小。。少了好几百。(应该是100M多)
2008-1-17 21:21
0
雪    币: 243
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
集成环境根本运行不了。。。看雪的问题??无效下载??还是环境需要设置??
还是根本就不支持集成环境汇编?

哪位会的高人指点下啊!!!
简单的说就是我有一个 HELLO.ASM文件。如何生成HELLO。EXE在,集成环境中。(这个HELLO。ASM本身也是m32v9r里面的 。。所以手工编译连接。是没问题的。关键是集成环境到底怎么弄呢?   砸就不能整合下呢??难道还要我写个什么东西??设置什么??
; ?

;                 Build this with the "Project" menu using
;                       "Console Assemble and Link"

; ?

    .486                                    ; create 32 bit code
    .model flat, stdcall                    ; 32 bit memory model
    option casemap :none                    ; case sensitive

    include \masm32\include\windows.inc     ; always first
    include \masm32\macros\macros.asm       ; MASM support macros

  ; -----------------------------------------------------------------
  ; include files that have MASM format prototypes for function calls
  ; -----------------------------------------------------------------
    include \masm32\include\masm32.inc
    include \masm32\include\gdi32.inc
    include \masm32\include\user32.inc
    include \masm32\include\kernel32.inc

  ; ------------------------------------------------
  ; Library files that have definitions for function
  ; exports and tested reliable prebuilt code.
  ; ------------------------------------------------
    includelib \masm32\lib\masm32.lib
    includelib \masm32\lib\gdi32.lib
    includelib \masm32\lib\user32.lib
    includelib \masm32\lib\kernel32.lib

    .code                       ; Tell MASM where the code starts

; ?

start:                          ; The CODE entry point to the program

    print chr$("Hey, this actually works.",13,10)
    exit

; ?

end start                       ; Tell MASM where the program ends

我把该ASM文件拷贝到自己文件夹。 "Console Assemble and Link" 啥反映都没。。。。
RUN更是没用。。。除非把EXE直接搞过来。。倒是有一闪而过的屏幕。。但是。我要的是编译,连接啊!!!
2008-1-17 21:35
0
雪    币: 243
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
明白了。。路径设置问题。。见鬼。这东西居然不能识别路径。。必须放在MASM32目录下。
2008-1-17 21:59
0
雪    币: 243
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
晕死。。DOS程序可以。。WIN32汇编怎么不成功??
.386
                .model flat, stdcall
                option casemap :none   ; case sensitive

include                windows.inc
include                kernel32.inc
includelib        kernel32.lib

                .data

szCaption                db        'Win32汇编例子',0
szText                db        'Win32汇编,Simple and powerful!',0

                .code

start:
                invoke        MessageBox,NULL,addr szText,addr szCaption,MB_OK
                invoke        ExitProcess,NULL

                end        start
HELLO。EXE成功生成。。但是点运行怎么没效果啊??对话框砸不弹呢?

明白了。这个开发环境是相当糟糕的。更改以后要保存才有效果。。。。。比起VC真的觉的好差劲啊!!
2008-1-17 22:26
0
雪    币: 243
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
8
HELLO WORLD 终于成功

.486                                    ; create 32 bit code
    .model flat, stdcall                    ; 32 bit memory model
    option casemap :none                    ; case sensitive

    include \masm32\include\windows.inc     ; always first
   ; include \masm32\macros\macros.asm       ; MASM support macros

  ; -----------------------------------------------------------------
  ; include files that have MASM format prototypes for function calls
  ; -----------------------------------------------------------------
    include \masm32\include\masm32.inc
    include \masm32\include\gdi32.inc
    include \masm32\include\user32.inc
    include \masm32\include\kernel32.inc

  ; ------------------------------------------------
  ; Library files that have definitions for function
  ; exports and tested reliable prebuilt code.
  ; ------------------------------------------------
    includelib \masm32\lib\masm32.lib
    includelib \masm32\lib\gdi32.lib
    includelib \masm32\lib\user32.lib
    includelib \masm32\lib\kernel32.lib

                .data

szCaption                db        'zzzzzzz',0
szText                db        'Hello  world',0

                .code

start:
                invoke        MessageBox,NULL,addr szText,addr szCaption,MB_OK
                invoke        ExitProcess,NULL

                end        start
2008-1-17 23:01
0
雪    币: 485
活跃值: (12)
能力值: ( LV9,RANK:490 )
在线值:
发帖
回帖
粉丝
9
我用批处理,可选择语法着色的文本编辑器,保存之后双击批处理,可执行文件就生成了
2008-1-18 10:12
0
游客
登录 | 注册 方可回帖
返回
//