flat assembler
Message board for the users of flat assembler.

Index > Windows > How to make 64bit applications?

Author
Thread Post new topic Reply to topic
d0mek



Joined: 15 Jul 2013
Posts: 6
d0mek
I made 32bit app, now I changed Win32ax.inc into Win64ax.inc but it doesn't want to compile. It says:

"section '.data' data readable writeable"

I just want to SSE4.2 instructions which seems I can't use in 32bit mode.

Code:
use64

include 'include/WIN64AX.INC'

.data
  testt dd 0
  test6 rb 10000000 ;10 MB
.code



  proc Alert, msg
    invoke MessageBox,0, [msg] ,'Information',MB_OK
  ret
  endp

main:


mov eax, 65

mov ecx, 5
start_loop:  ; the code here would be executed 5 times

inc eax

loop start_loop

mov [testt], eax
mov [testt+1], 70
mov [testt+2],0


mov [test6], 71
mov [test6+1], 2
inc [test6]

;mov byte eax, [test6]
;add [test6], ebx

;mov [qword 0],rax
;vblendvpd       ymm3,  ymm2,  ymm1,  ymm15
crc32 rax, qword [rbx]


stdcall Alert, test6
stdcall Alert, testt


invoke ExitProcess, 0

.end main    
Post 31 Jul 2013, 22:12
View user's profile Send private message Reply with quote
d0mek



Joined: 15 Jul 2013
Posts: 6
d0mek
Ha! use64 should be after include not before! Smile
Post 31 Jul 2013, 22:31
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17475
Location: In your JS exploiting you and your system
revolution
Actually USE64 is not needed at all because WIN64AX.INC has the FORMAT directive to set the code generation mode.
Post 31 Jul 2013, 23:10
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.