![]() |
sponsored links |
|
|
sponsored links
|
|
|
3
26th March 04:28
External User
Posts: 1
|
"Riley DeWiley" <spamtrap@crayne.org> écrivait news:4oadnWAlt9FT1kXeRVn-
qw@seanet.com: Yes. ![]() Betov. < http://rosasm.org > |
|
|
8
26th March 12:53
External User
Posts: 1
|
The easiest way is to use the "proto" statement to declare the function,
instead of a plain "extrn". MASM will supply the proper decoration. C:\Tmp> type x.asm ..586 ..model flat, stdcall ExitProcess proto WORD..code _start: push 0 call ExitProcess ; or: ; invoke ExitProcess, 0 end _start C:\Tmp>ml /c x.asm Microsoft (R) Macro Assembler Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. Assembling: x.asm C:\Tmp>link /subsystem:console /out:x.exe x.obj kernel32.lib Microsoft (R) Incremental Linker Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. C:\Tmp> -- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc. |
|
|
10
27th March 00:10
External User
Posts: 1
|
That assumes that you have kernel32.inc, which implies that you have
downloaded and installed MASM32. What I posted works with nothing other than ml.exe. (And link.exe, and kernel32.lib...) -- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc. |
|