flat assembler
Message board for the users of flat assembler.

Index > Windows > Problem building the .exe

Author
Thread Post new topic Reply to topic
Dally



Joined: 12 Apr 2015
Posts: 1
Location: United Kingdom
Dally 12 Apr 2015, 15:37
Hello,

Probably bit of a noob question, but,

tried creating a .exe in a cmd window on Windows 8.1 using:

FASMW test.acm test.exe

It's not building the .exe.

The code is this, whic I hope works(? 8¬/)

mov al,00h

move:
mov al,60h ; get byte from base address of keyboard port and store it in al
cmp al,20h
jne move
call move
display 'hello'
ret

Could you help me? Smile
Post 12 Apr 2015, 15:37
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1178
Location: Unknown
HaHaAnonymous 12 Apr 2015, 15:43
Quote:

Probably bit of a noob question, but,

tried creating a .exe in a cmd window on Windows 8.1 using:

FASMW test.acm test.exe

It's not building the .exe.

Could you help me?

You should use "FASM" executable. "FASMW" is the integrated development environment, as far as I know.

Not sure.

I apologize for any inconveniences I may have caused.
Post 12 Apr 2015, 15:43
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20343
Location: In your JS exploiting you and your system
revolution 13 Apr 2015, 06:17
Dally: Please take a look at the examples folder in the fasm download to see how to build programs with fasm. Here is the "hello.asm" for windows:
Code:
; example of simplified Windows programming using complex macro features

include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here

.code

  start:
        invoke  MessageBox,HWND_DESKTOP,"Hi! I'm the example program!",invoke GetCommandLine,MB_OK
        invoke  ExitProcess,0

.end start    
Post 13 Apr 2015, 06:17
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.