I tried to modify the exedemo.asm file to work as a PE format test as follows:

; fasm example of writing simple EXE program

format PE console

section '.code' code readable executable

push cs
pop ds

mov ah,9
mov dx,hello
int 21h

mov ax,4C00h
int 21h

section '.data' data readable

hello db 'Hello world!',0Dh,0Ah,0

When I trie to compile it, I get an error: Invalid use of symbol

The error referrs to the line: mov dx,hello

Please help!
Posted on 2002-11-15 20:48:21 by msmith
Having done a little more checking on my own, it looks like I've tried to mix 16 bit (dos?) stuff into a win32 console program.

Anyway, what would be helpful to me would be a PE console example Hello World program something like the dll example, but without the confusion of the dll stuff.

Posted on 2002-11-15 21:36:08 by msmith
We have a FAQ for these type of questions


Look under "Console Applications"
Posted on 2002-11-16 05:35:55 by bazik
Thank you for the FAQ info. I found many interesting things there.

The Hello World example reffered to was for masm and 'seemed' more elaborate then necessary???

I would appreciate a _simple_ Hello World example like the exedemo.asm included with fasm, but in PE format for fasm.

Also, I have been having a hard time getting thorough information on the usage of RVA.
Posted on 2002-11-16 11:59:01 by msmith