Re: Windows Assembly



Philip Smith wrote:

> Where does this INVOKE thing keep coming from? Obiously the API calls
> require some kind of header file and whatever this INVOKE macro does,
> but I havent discovered where the header file is, or what this INVOKE
> macro does.

INVOKE is a masm builtin thing that does type + argument-count checking, and
handles pushing in the right right order (cdecl vs. stdcall) as well as
cleaning stack if necessary.

For the headers, either manually convert them from the PlatformSDK, or grab
the MASM32 package from www.movsd.com . Just stay away from the "masm32lib"
there, it's full of bugs and inferior code (and yes, this remark will make
hutch start another flamewar, but I don't care).

You might want to check out www.flatassembler.net as well.

> I haven't looked at anything much yet today. I did talk to a friend
> on the phone, and from that I think that I might download Dev-C++ and
> play with it for a while, and decide from there if I want to go with
> assembly or not. I think I can learn to live with what I hate about
> C.

Check out www.codeblocks.org and
http://msdn.microsoft.com/visualc/vctoolkit2003/ - it's a better combo than
Dev-C++ and GCC, IMHO.

> What would a Linux video driver look like? An X server? An SVGAlib
> compatible library?

Didn't they try to add that DRI stuff or whatever to the kernel?


.



Relevant Pages

  • Re: Learning Assembly with an HLL
    ... unavoidable API stuff. ... it more difficult to comprehend why you would recommend INVOKE. ... bytes and that the 32 bytes at top of stack must be available ... If the assembler doesn't know where the scratch space in the ...
    (comp.lang.asm.x86)
  • Re: Converting char(s) into String
    ... Perhaps because it depends on knowledge of the API. ... If the compiler produced code using StringBuffer ... invoke 0 parameter constructor of StringBuffer. ... invoke 1 parameter append method. ...
    (comp.lang.java.programmer)
  • Re: Is MASM32 an evil Microsoft plot? (Part 2)
    ... push offset titletxt ... invoke MessageBox,hWnd,ADDR TxtMsg,ADDRTtlTxt,MB_OK ... MASM code through the most powerful assembler available in 32 bit ... and API call is just that, ...
    (alt.lang.asm)
  • absolute address
    ... The general solution is to use the ShellExecuteAPI with the ... "print" verb to invoke the registered application to print it. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: How to "Change user"
    ... can invoke this command with an API call? ... Thangs in advance! ...
    (microsoft.public.vb.general.discussion)