Re: GoAsm And EasyCode



On Feb 27, 11:35 pm, "Jim Carlock" <anonym...@xxxxxxxxx> wrote:
"Evenbit" posted...
: Wow! The bottom screenshot at [http://www.easycoder.org/]
: actually contains a "mov" instruction!!! Most of the rest is High
: Level macros.

I ended up getting the GoAsm version up and running, but
the masm32 version doesn't like my kernel32.inc file for some
reason.

Going to have to find an older kernel32.inc file, perhaps. Either
that, or the MASM version of EasyCoder isn't using the proper
ml.exe file. It would be helpful if it displayed the ml.exe version.

Somewhere in the EasyCoder "preferences" there should be a place where
it lists (allows the setting of) the path to "ml.exe". Open a Command
Prompt and "CD" to that path, then type "ml" and it should tell you
the version.


The GoAsm version had some really wacky syntax going on,
perhaps that's the macros you're refering to...

No, I was refering to the ".If", ".ElseIf", "Invoke" macros in the
screenshot.


frmMainProcedure Frame hWnd, uMsg, wParam, lParam
Mov Eax, [uMsg]
Mov Ecx, SizeOf MESSAGES / 8
Mov Edx, Addr MESSAGES
: Dec Ecx
Js > L2
Cmp [Edx + Ecx * 8], Eax
Jne <
Call [Edx + Ecx * 8 + 4]
Ret
L2: Return (FALSE)
EndF

The above is not a macro. It is a procedure for processing the
messages that a window recieves. This particular one uses a jump
table.

Nathan.

.



Relevant Pages

  • Re: The Advantage of Macros
    ... macros (I couldn't figure out how to use his macro library - Nathan ... mov eax, ... locals counter, name ...
    (alt.lang.asm)
  • Re: NASM macros
    ... > mov ebx, %1 ... > sys_write 1, ecx, edx ... I want to wrap the Linux syscalls in macros so as to permit a ...
    (alt.lang.asm)
  • Re: Question about jumps
    ... I think some assemblers dump the symbol table with the listing file, which Nasm doesn't do... ... scale it down a good bit to make a "Linux NASM Beginner Kit" package. ... If "nasm64" ever appears, we'll want macros so ... mov rax, 1; maybe just eax? ...
    (alt.lang.asm)
  • Re: Evolution
    ... It's quite possible to do amazing things with MASM's macros. ... plus the bugs I was discovering in MASM v6.11 at the time, ... _mov macro dest, src ... which assembles into ...
    (alt.lang.asm)