G
G
Georgy Kuznetsov2021-05-23 18:17:10
assembler
Georgy Kuznetsov, 2021-05-23 18:17:10

Are there any resources, documentation, where the invoke instruction (FASM) would be described?

And one more thing: why does this code end up outputting "Hello worldj" instead of the adequate output "Hello world"?

include 'win32ax.inc'
MsgText db "Hello world"
start:
         invoke  MessageBox,NULL,MsgText,'Fasm message box:',MB_OK
         invoke  ExitProcess,0
.end start

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2021-05-23
@gbg

There is no zero at the end of the string.
And invoke is not an instruction, but a macro that expands into pushing the listed parameters onto the stack (push) and calling the function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question