News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Some Test Needed

Started by frktons, November 09, 2010, 02:30:30 PM

Previous topic - Next topic

Antariy

Quote from: FORTRANS on November 10, 2010, 10:35:54 PM
   Updated the ZIP file in my older post to add the POP file.

Hi, Steve!

You are test old archive, probably?
You recompile the sources?
Just I found similar problem yesterday: "http://www.masm32.com/board/index.php?topic=14871.msg124349#msg124349"

Now Frank fix the program - try it from that thread (that is main thread of this his program).



Alex

Antariy

Quote from: frktons on November 10, 2010, 03:36:22 AM
Something to take care of: the CPU description string can be longer than 1 row on the Screen.

Needed to remove " with " word, and spaces between sets, i.e. they will looks like: "Intel 8088, MMX;SSE;SSE2;SSE3..."

FORTRANS

Quote from: Antariy on November 10, 2010, 10:57:38 PM
You are test old archive, probably?

Hi Alex,

   Maybe, used Beta090.ZIP.

  22528  DeflatN   5707  75%  11-09-2010  15:21  2968c23f --wa  Beta 0.90/NewTestBed.exe

Quote
You recompile the sources?

   No.  Not this time.

Quote
Just I found similar problem yesterday: "http://www.masm32.com/board/index.php?topic=14871.msg124349#msg124349"

Now Frank fix the program - try it from that thread (that is main thread of this his program).

   Thought I did?

Regards,

Steve N.

Antariy

Quote from: FORTRANS on November 10, 2010, 11:05:28 PM
   Thought I did?

Not understdand what you mean.

There is direct link to new beta090 (your one is old): "http://www.masm32.com/board/index.php?action=dlattach;topic=14871.0;id=8408".

Check it - it works. I say about recompiling, because yesterday I have the same console screen as your screenshot, if I recompile sources with ML6.15 or ML8.

frktons

Apparentely on win 2k the display is completely different:
1) no grid at all
2) no colors

Probably depends on the fact it only has SSE1, and some instructions of the program
require at least SSE2 code.

It only displays:

Microsoft Windows 2000 Professional Service Pack 4 (build 2195)
Pentium III with MMX, SSE1

Conversion of a screen buffer from DOS to Windows CHAR_INFO structure

Alex / MMX - PUNPCKLBW        62      12.952    12.937    12.916   12.920

and so on...


NO screen format at all.

Because the code to prepare the screen uses XMM registers, you can try to
press F1, and see if the help screen shows correctly. It uses only MMX code
so it should appear.
but use the compiled executable, otherwise download the last release from
the link Alex pointed to, I've changed something to make it more compatible with
old assemler versions.
No actual solution for the SSE1 though.

Frank
Mind is like a parachute. You know what to do in order to use it :-)

Antariy

Hi, Frank!
Quote from: frktons on November 10, 2010, 11:10:49 PM
Apparentely on win 2k the display is completely different:
1) no grid at all
2) no colors

Probably depends on the fact it only has SSE1, and some instructions of the program
require at least SSE2 code.
.........
I've changed something to make it more compatible with
old assemler versions.
No actual solution for the SSE1 though.

Well, what you see? Compatibility - is big issue :P
:bg

Yes, not SSE2 enabled CPUs will treat prefix opcode as nothing to meaning. But FPU will trashed.

FORTRANS

Hi,

   Usig the version Alex pointed out.

11/10/2010  01:21a              22,528 NEWTESTB.EXE

   Screen still looks strange, but cut&paste looks better.
Yellow text on dark blue.  No help screen (blank).

Regards,

Steve



       Microsoft Windows 2000 Professional Service Pack 4 (build 2195)
       Pentium III with MMX, SSE1

       Conversion of a screen buffer from DOS to Windows CHAR_INFO structure



    Alex / MMX - PUNPCKLBW            62        50.929     57.629     57.660     57.774

    Frank / 486 - MOV-BSWAP           43        12.523     12.523     12.518     12.520

    Frank / XMM PUNPCKLBW MOVDQA      44         4.492      4.492      4.495      4.492

Antariy

Quote from: FORTRANS on November 10, 2010, 11:25:03 PM
   Screen still looks strange

That is because Frank uses SSE2 - but I have warned him  :bg

frktons

Quote from: FORTRANS on November 10, 2010, 11:25:03 PM
Hi,

   Usig the version Alex pointed out.

11/10/2010  01:21a              22,528 NEWTESTB.EXE

   Screen still looks strange, but cut&paste looks better.
Yellow text on dark blue.  No help screen (blank).

Regards,

Steve



       Microsoft Windows 2000 Professional Service Pack 4 (build 2195)
       Pentium III with MMX, SSE1

       Conversion of a screen buffer from DOS to Windows CHAR_INFO structure



    Alex / MMX - PUNPCKLBW            62        50.929     57.629     57.660     57.774

    Frank / 486 - MOV-BSWAP           43        12.523     12.523     12.518     12.520

    Frank / XMM PUNPCKLBW MOVDQA      44         4.492      4.492      4.495      4.492


You don't see the grid at all?
You don't see the help screen?

Interesting  :lol

IS THERE A FILE: TESTBEDHELP.POP IN THE FOLDER YOU UNZIPPED?

Alex, I'm using your routine with MMX code to convert the Help Screen, if he doesn't
see neither that, I really don't know what compatibility issue it is.  ::)
Quote from: Antariy on November 10, 2010, 11:27:11 PM
Quote from: FORTRANS on November 10, 2010, 11:25:03 PM
   Screen still looks strange

That is because Frank uses SSE2 - but I have warned him  :bg


What about the Help Screen? What is your theory about not displaying neither that?

Frank
Mind is like a parachute. You know what to do in order to use it :-)

Antariy

Quote from: frktons on November 10, 2010, 11:33:25 PM
What about the Help Screen? What is your theory about not displaying neither that?

Change

movntq qword ptr [edi],mm0


to

movq qword ptr [edi],mm0


in the MMX conversion proc  :green2

frktons

Quote from: Antariy on November 10, 2010, 11:38:23 PM
Quote from: frktons on November 10, 2010, 11:33:25 PM
What about the Help Screen? What is your theory about not displaying neither that?

Change

movntq qword ptr [edi],mm0


to

movq qword ptr [edi],mm0


in the MMX conversion proc  :green2


OK Alex. Why did you use movntq instead of movq ?

FORTRANS [Steve] should try this on its PC and see what happens in his machine
on mine probably nothing will change.
Mind is like a parachute. You know what to do in order to use it :-)

Antariy

Quote from: frktons on November 10, 2010, 11:47:04 PM
OK Alex. Why did you use movntq instead of movq ?

Bad habit  :P

frktons

This new release should have fixed some of the issues. Not all of them though regarding
compatibility for old machines.

A better use of MMX instructions as well

Frank


┌────────────────────────────────────────────────────────────────────────────────────────┐
│OS  : Microsoft Windows 7 Ultimate Edition, 64-bit (build 7600)                         │
│CPU : Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz with MMX, SSE1, SSE2, SSE3, SSSE3           │
│                                                                                        │
│Test: Conversion of a screen buffer from DOS to Windows CHAR_INFO structure             │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 Alex / MMX - PUNPCKLBW MOVQ    │    64   │    3.191 │    3.179 │    3.179 │    3.179 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│02 Frank / 486 - MOV-BSWAP        │    43   │    8.357 │    8.366 │    8.358 │    8.357 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│03 Frank / XMM PUNPCKLBW MOVDQA   │    44   │    2.339 │    2.340 │    2.337 │    2.337 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤


A test is needed for machines with SSE4.1/2 code capability. If anybody with these machines could test
the program and post the results it would be great.  :U

For the latest release of the New Testbed refer to:
http://www.masm32.com/board/index.php?topic=14871.0

Frank
Mind is like a parachute. You know what to do in order to use it :-)

FORTRANS

Quote from: frktons on November 10, 2010, 11:33:25 PM
You don't see the grid at all?
You don't see the help screen?

Interesting  :lol

IS THERE A FILE: TESTBEDHELP.POP IN THE FOLDER YOU UNZIPPED?

Hi Frank,

   No grid.  Will update screen shot in ZIP file in Reply #21.  The
cursor is gone on exit, and the screen colors are not restored and
remain yellow on dark blue.

11/08/2010  09:07p               6,124 TESTBEDH.POP

   It got truncated to 8.3.  When renamed it works.

Regards,

Steve N.

frktons

Quote from: FORTRANS on November 11, 2010, 12:55:46 PM
Hi Frank,

   No grid.  Will update screen shot in ZIP file in Reply #21.  The
cursor is gone on exit, and the screen colors are not restored and
remain yellow on dark blue.

11/08/2010  09:07p               6,124 TESTBEDH.POP

   It got truncated to 8.3.  When renamed it works.

Regards,

Steve N.

Hi Steve.

Well, the 8.3 filename lenght is another problem for old OSes.

I've prepared a version that should run better on yuor machine
and clear the console to white on black as well, and restore the cursor.

Test it and let me know.

Frank
Mind is like a parachute. You know what to do in order to use it :-)