flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > Iczelion's Tutorial #2a Win64 fasm format

Author
Thread Post new topic Reply to topic
yeohhs



Joined: 19 Jan 2004
Posts: 168
Location: N 5.43564° E 100.3091°

Iczelion's Tutorial #2a Win64 fasm format


Code:

format PE64 GUI 5.0
entry start

include 'win64a.inc'

section '.text' code readable executable

  start:
        enter 4*8,0
        xor ecx,ecx
        mov r9,rcx
        lea r8,[MsgCaption]
        lea edx,[MsgBoxText]
        call [MessageBox]
        leave
        ret

section '.data' data readable writeable

  MsgCaption db "Iczelion's Tutorial #2a",0
  MsgBoxText db "Win64 Assembly is Great!",0

section '.idata' import data readable writeable

  library kernel32,'KERNEL32.DLL',\
          user32,'USER32.DLL'

  include 'api\kernel32.inc'
  include 'api\user32.inc'


Post 04 Jan 2018, 05:48
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


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.