0

Can anybody be so kind and supply me the simplest MessageBox assembly program for Windows in both MASM and NASM flavor? I'd like to compare both versions based on this two different compilers.

P.S. I'm asking the question because I've searched a lot and didn't find clear and simple examples of that kind.

CherryDT
  • 25,571
  • 5
  • 49
  • 74
Darox99
  • 19
  • 5
  • 1
    Here is [one for nasm](https://stackoverflow.com/q/66323292/547981) – Jester Jul 26 '23 at 11:51
  • 1
    And [one for masm](https://stackoverflow.com/q/59049154/547981). It's using the `invoke` macro but you could of course `push` the arguments by hand too. – Jester Jul 26 '23 at 11:58
  • And [one for €ASM](https://euroassembler.eu/eadoc/#HelloWorld), both for 32bit and 64bit Windows, ANSII or WIDE versions. – vitsoft Jul 26 '23 at 15:45
  • 1
    An answer on [How to write hello world in assembly under Windows?](https://stackoverflow.com/a/1032422) uses MessageBoxA from MASM, manually setting up the args, for 32-bit and 64-bit. Another answer on the same question [does the same with NASM for x86-64](https://stackoverflow.com/a/27988874/224132), including showing commands to build+link. – Peter Cordes Jul 26 '23 at 16:54

0 Answers0