Author Topic: JWasm212pre with AVX2  (Read 14834 times)

Gunther

  • Member
  • *****
  • Posts: 3518
  • Forgive your enemies, but never forget their names
Re: JWasm212pre with AVX2
« Reply #15 on: November 19, 2014, 08:18:17 AM »
Hi Habran,

Have you tested it yet?

only partially, but that works fine. The rest comes next weekend, because this week is like hell (exams, exams and exams). I've to supervise the entire circus.

Gunther

Get your facts first, and then you can distort them.

habran

  • Member
  • *****
  • Posts: 1116
    • uasm
Re: JWasm212pre with AVX2
« Reply #16 on: November 19, 2014, 08:35:19 AM »
Take your time Gunther :biggrin:
Those people are the lucky ones because they have you to supervise them ;)
Cod-Father

habran

  • Member
  • *****
  • Posts: 1116
    • uasm
Re: JWasm212pre with AVX2
« Reply #17 on: November 19, 2014, 11:26:09 PM »
I have fixed 32 bit at the top of this thread
these 2 at the top are my version with all benefits

post #5 contains original versions with only AVX2 added

if everything is OK I will create a new thread with sources an binaries
Cod-Father

Gunther

  • Member
  • *****
  • Posts: 3518
  • Forgive your enemies, but never forget their names
Re: JWasm212pre with AVX2
« Reply #18 on: November 20, 2014, 04:01:27 AM »
Hi Habran,

I have fixed 32 bit at the top of this thread
these 2 at the top are my version with all benefits

special thanks.  :t You're a hard working man.

Gunther
Get your facts first, and then you can distort them.

jj2007

  • Member
  • *****
  • Posts: 7757
  • Assembler is fun ;-)
    • MasmBasic
Re: JWasm212pre with AVX2
« Reply #19 on: November 20, 2014, 04:16:48 AM »
WinMain proc uses edi esi ebx hInst:DWORD, hPrevInst:DWORD, CmdLine:DWORD, CmdShow:DWORD
 ....
   int 3
   return msg.wParam


00401A00   ³> ÀCC             int3
00401A01   ³.  8B45 BC        mov eax, [ebp-44]
00401A04   ³.  8BE5           mov esp, ebp
00401A06   ³.  5D             pop ebp
00401A07   À.  C2 1000        retn 10


should be:
00401A01   ³.  8B45 BC        mov eax, [ebp-44]
00401A04   ³.  5B             pop ebx
00401A05   ³.  5E             pop esi
00401A06   ³.  5F             pop edi
00401A07   ³.  8BE5           mov esp, ebp
00401A09   ³.  5D             pop ebp
00401A0A   À.  C2 1000        retn 10

nidud

  • Member
  • *****
  • Posts: 1411
    • https://github.com/nidud/asmc
Re: JWasm212pre with AVX2
« Reply #20 on: November 20, 2014, 04:58:25 AM »

should be:
00401A01   ³.  8B45 BC        mov eax, [ebp-44]
00401A04   ³.  5B             pop ebx
00401A05   ³.  5E             pop esi
00401A06   ³.  5F             pop edi
00401A07   ³.  8BE5           mov esp, ebp
00401A09   ³.  5D             pop ebp
00401A0A   À.  C2 1000        retn 10


00401A01   ³.  8B45 BC        mov eax, [ebp-44]
00401A04   ³.  8BE5           mov esp, ebp
00401A06   ³.  5D             pop ebp
00401A07   ³.  5B             pop ebx
00401A08   ³.  5E             pop esi
00401A09   ³.  5F             pop edi
00401A0A   À.  C2 1000        retn 10

there, fixed that for you   :lol:

habran

  • Member
  • *****
  • Posts: 1116
    • uasm
Re: JWasm212pre with AVX2
« Reply #21 on: November 20, 2014, 07:24:14 AM »
Quote
special thanks.  :t You're a hard working man.
...with a broken arm :biggrin:

Hey jj2007, I don't like you, I LOVE you (nothing sexual) ;)
thank you for finding that error
I fixed it and uploaded it
test it please

to have ebp free for use you can use also:
Code: [Select]
option stackbase : esp
thank you nidud for protecting me :t
Cod-Father

Gunther

  • Member
  • *****
  • Posts: 3518
  • Forgive your enemies, but never forget their names
Re: JWasm212pre with AVX2
« Reply #22 on: November 21, 2014, 07:25:11 AM »
Hi Habran,

thank you for finding that error
I fixed it and uploaded it
test it please

that was a very fast fix.  :t

Gunther
Get your facts first, and then you can distort them.

habran

  • Member
  • *****
  • Posts: 1116
    • uasm
Re: JWasm212pre with AVX2
« Reply #23 on: November 21, 2014, 07:30:47 AM »
Hey Gunther
You are such a fine person :biggrin:
I wish you lived somewhere closer to me so I could visit you
Cod-Father

jj2007

  • Member
  • *****
  • Posts: 7757
  • Assembler is fun ;-)
    • MasmBasic
Re: JWasm212pre with AVX2
« Reply #24 on: November 21, 2014, 09:22:38 AM »
test it please

Works fine now with the RichMasm source (15,000+ lines) :t

habran

  • Member
  • *****
  • Posts: 1116
    • uasm
Re: JWasm212pre with AVX2
« Reply #25 on: November 21, 2014, 01:07:21 PM »
Thanks mate :t
I am glad that you are happy :biggrin:
I'll wait for Gunther to test AVX2 instructions and if OK than I'll crate a new thread with sources and binaries
I'll also write detailed instructions how to use my versions with all the benefits I have implemented 
Cod-Father

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: JWasm212pre with AVX2
« Reply #26 on: November 21, 2014, 08:23:17 PM »
I have made a test with a jwasm sample Win64_8.asm
It work but I get strange display
Quote
JWasm v2.12pre, Nov 17 2014, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

Win64_8.asm: 367 lines, 3 passes, 15 ms, 0 warnings, 0 errors
Error A2168: General Failure

There has been an error while assembling this project.

Appuyez sur une touche pour continuer...

Quote
AMD A6-5200 APU with Radeon(TM) HD Graphics   
Windows 8.1

VC++ express 2013

Fa is a musical note to play with CL

Gunther

  • Member
  • *****
  • Posts: 3518
  • Forgive your enemies, but never forget their names
Re: JWasm212pre with AVX2
« Reply #27 on: November 21, 2014, 08:55:36 PM »
Hi Habran,

I wish you lived somewhere closer to me so I could visit you

in any case: If you ever come to Germany, especially Berlin, you should visit me. We could have a beer or two and talk about the world and the forum.

Gunther
Get your facts first, and then you can distort them.

habran

  • Member
  • *****
  • Posts: 1116
    • uasm
Re: JWasm212pre with AVX2
« Reply #28 on: November 21, 2014, 10:22:57 PM »
Hi ToutEnMasm :biggrin:
when you use my 64bit version JWasm (at the top of this thread)
use this options:
Code: [Select]
option casemap : none
option win64 : 11   ;eleven
option frame : auto
option stackbase : rsp
.xmm
and than see if it will give you the same result

I was being careful not to disturb original layout but it looks like it leaked somewhere
I'll go through everything again and make sure that all options work independently
however, for now if you use my version than use   
Code: [Select]
option win64 : 11   ;elevenyou have also available under the post #5 the original version with only AVX2 added

try if it works with Win8

please keep me updated
 
Cod-Father

habran

  • Member
  • *****
  • Posts: 1116
    • uasm
Re: JWasm212pre with AVX2
« Reply #29 on: November 21, 2014, 11:14:35 PM »
Hi Habran,
in any case: If you ever come to Germany, especially Berlin, you should visit me. We could have a beer or two and talk about the world and the forum.
Gunther
I have 2 sisters in Grmny: one lives in Ravensburg and the other one in Konstanc on Bodensee
I have a plan to visit them in next few years but I am not ready yet (financially)
I'll certainly visit you when I come

however, if you ever decide to come to OZ you must visit me, we have also German beers here)
I live in Adelaide and Germans settled in Adelaide hills 1838

I loved the life in Germany, it was a beautiful and developed, dynamic country (1972-74 when Willy Brandt was a Chancellor of the Federal Republic of Germany)
I loved German girls and they loved me back (I was 17-19) :dazzled:
Cod-Father