The MASM Forum

Projects => Rarely Used Projects => Archival JWASM postings => Topic started by: habran on April 23, 2015, 08:25:31 PM

Title: JWasm212 fixed TYPE
Post by: habran on April 23, 2015, 08:25:31 PM
Hello  mortals :biggrin:
long time no see, sorry... busy ;)
rrr314159 tanks for pointing out a TYPE error :t

the error was here:

parser.h

// values for sflags if register
enum op1_flags {
    SFR_SIZMSK  = 0x1F, /* size in bits 0-4 */
    SFR_IREG    = 0x20,
    SFR_SSBASED = 0x40, /* v2.11: added */
    SFR_YMMMASK = 0x3f, /* added by habran */
};

parser.c

int SizeFromRegister( int registertoken )
/***************************************/
{
    unsigned flags;
    if (((registertoken >= T_YMM0) && (registertoken <= T_YMM7 ))||
      ((registertoken >= T_YMM8) && (registertoken <= T_YMM15 )))
      flags = GetSflagsSp( registertoken ) & SFR_YMMMASK ;   //added by habran
   
    else
      flags = GetSflagsSp( registertoken ) & SFR_SIZMSK;

    if ( flags )
        return( flags );

    flags = GetValueSp( registertoken );
    if ( flags & OP_SR )
        return( CurrWordSize );

    /* CRx, DRx, TRx remaining */
#if AMD64_SUPPORT
    return( ModuleInfo.Ofssize == USE64 ? 8 : 4 );
#else
    return( 4 );
#endif
}

here is a fixed binary version
P.S.
Still working on AVX512 8)
Title: Re: JWasm212 fixed TYPE
Post by: TWell on April 23, 2015, 08:37:55 PM
can you give that 32-bit version too?
Title: Re: JWasm212 fixed TYPE
Post by: habran on April 23, 2015, 09:12:39 PM
Certainly TWell :biggrin:
my second name is CANDO ;)
Title: Re: JWasm212 fixed TYPE
Post by: Gunther on April 24, 2015, 02:17:28 AM
Hi Habran,

special thanks. Have you heard something of Andreas? What is with the other OS (DOS, Linux, BSD, OS/2)?

Gunther
Title: Re: JWasm212 fixed TYPE
Post by: habran on April 24, 2015, 06:22:24 AM
Hi Gunther, you welcome
Keine Ahnung where is Andreas :icon_eek:
I am afraid of the worst  :(
QuoteWhat is with the other OS (DOS, Linux, BSD, OS/2)?
I can build only for windows
In the attached folder there are three files I changed, so if you are able to build them you are welcome
Title: Re: JWasm212 fixed TYPE
Post by: Gunther on April 24, 2015, 11:11:05 PM
Hi Habran,

Quote from: habran on April 24, 2015, 06:22:24 AM
I can build only for windows
In the attached folder there are three files I changed, so if you are able to build them you are welcome

I'll try it for DOS and Unix. I've to check the build scripts by Andreas. OS/2 is a bit tricky, because I have only an old OS/2 Warp 4 original CD here and could try to build it in a Virtual Machine. I'm not sure if that's sufficient.

Gunther
Title: Re: JWasm212 fixed TYPE
Post by: anta40 on April 25, 2015, 03:08:18 AM
Hi habran,

Are the changes based on the latest jwasm code by Japheth?
Title: Re: JWasm212 fixed TYPE
Post by: Gunther on April 25, 2015, 03:27:46 AM
Hi anta40,

Quote from: anta40 on April 25, 2015, 03:08:18 AM
Are the changes based on the latest jwasm code by Japheth?

I think so. But Habran made a lot of changes to implement for example  AVX and AVX2.

Gunther
Title: Re: JWasm212 fixed TYPE
Post by: habran on April 25, 2015, 05:53:55 AM
>anta40 Yes, JWasm212s_140105
>Gunther I am adamant that you will do your best :t
Title: Re: JWasm212 fixed TYPE
Post by: rrr314159 on April 25, 2015, 02:04:37 PM
Hi Habran,

thanks for the fix makes life a little easier. Someday I'll learn how to fix JWasm myself, can't count on you mortals being around forever ;)
Title: Re: JWasm212 fixed TYPE
Post by: habran on April 25, 2015, 02:41:56 PM
Hi rrr314159 :biggrin:
It is my pleasure to make you grumpy old people happy ;)
QuoteSomeday I'll learn how to fix JWasm myself
Yeah, if you want the job done properly, do it yourself :lol:
Quotecan't count on you mortals being around forever ;)
mortals is my invention, so I am excluded 8)
Title: Re: JWasm212 fixed TYPE
Post by: FORTRANS on April 26, 2015, 12:28:25 AM
Hi Gunther,

Quote from: Gunther on April 24, 2015, 11:11:05 PM
OS/2 is a bit tricky, because I have only an old OS/2 Warp 4 original CD here and could try to build it in a Virtual Machine. I'm not sure if that's sufficient.

   If you need some (minor) help, I have working OS/2 systems
in use here.  Do you have a preferred virtual environment?

   You could look at eCS or Warpstock Europe for current items
related to OS/2 as well.

Regards,

Steve N.
Title: Re: JWasm212 fixed TYPE
Post by: Gunther on April 26, 2015, 03:49:36 AM
Hi Steve,

Quote from: FORTRANS on April 26, 2015, 12:28:25 AM
   If you need some (minor) help, I have working OS/2 systems
in use here.  Do you have a preferred virtual environment?

good to know. I would prefer VirtualBox or VMware Player, because I've no experiences with Quemu and Virtual PC from MS doesn't work with Windows 8 and above, I think.

Gunther
Title: Re: JWasm212 fixed TYPE
Post by: jj2007 on May 05, 2015, 10:26:56 PM
Quote from: habran on April 23, 2015, 09:12:39 PM
my second name is CANDO ;)

Hi Cando,

Just tested version 23 April on my latest RichMasm (16k lines) and MB (25k) sources, and it works absolutely fine - great compliment :t

Given that Andreas seems to have abandoned the project, we are really lucky that you maintain it - thanks a lot :icon14:

Jochen
Title: Re: JWasm212 fixed TYPE
Post by: habran on May 05, 2015, 10:50:54 PM
Thanks Jochen :t
Title: Re: JWasm212 fixed TYPE
Post by: FORTRANS on May 13, 2015, 11:37:30 PM
Hi Gunther,

Quote from: Gunther on April 26, 2015, 03:49:36 AM
Quote from: FORTRANS on April 26, 2015, 12:28:25 AM
   If you need some (minor) help, I have working OS/2 systems
in use here.  Do you have a preferred virtual environment?

good to know. I would prefer VirtualBox or VMware Player, because I've no experiences with Quemu and Virtual PC from MS doesn't work with Windows 8 and above, I think.

   Well, I have installed VirtualBox on my Windows 8.1 laptop.
Interesting product.  Seems medium well documented, but
rather complex.  Haven't really figured some of its features.
Which means I need to thrash around a bit to see what should
be happening.

   Anyway, I installed eComStation (the OS/2 follow-on) into
VirtualBox.  And I think (know) I got some things wrong.  But it
is running, and if I figure out what VirtualBox can modify in its
emulation, maybe I can fix things without a full reinstall.

   Nice to see it work.  Not so nice that hindsight works better
after the actions are taken.  So it's called learning I guess.

Regards,

Steve N.
Title: Re: JWasm212 fixed TYPE
Post by: Gunther on May 19, 2015, 06:26:50 PM
Hi Steve,

Quote from: FORTRANS on May 13, 2015, 11:37:30 PM
   Well, I have installed VirtualBox on my Windows 8.1 laptop.
Interesting product.  Seems medium well documented, but
rather complex.  Haven't really figured some of its features.
Which means I need to thrash around a bit to see what should
be happening.

   Anyway, I installed eComStation (the OS/2 follow-on) into
VirtualBox.  And I think (know) I got some things wrong.  But it
is running, and if I figure out what VirtualBox can modify in its
emulation, maybe I can fix things without a full reinstall.

   Nice to see it work.  Not so nice that hindsight works better
after the actions are taken.  So it's called learning I guess.

Regards,

Steve N.

that's good news. Configure VirtualBox is only a small challenge. There is a lot of good documentation available. By the way, how much is eComStation?

Gunther
Title: Re: JWasm212 fixed TYPE
Post by: FORTRANS on May 20, 2015, 01:45:50 AM
Hi Gunther,

Quote from: Gunther on May 19, 2015, 06:26:50 PM
that's good news. Configure VirtualBox is only a small challenge. There is a lot of good documentation available.

   Yeah, wading through the documentation is time consuming.
I may bite the bullet and reinstall to fix things the way I want
without tracking down how to modify an existing installation.
I just have to work up some momentum.

   I do not care much for mucking about in Windows 8.1.  Tried
to ask for help while running the installation of VirtualBox, and
was told that the internet was not available.  A wonderful design
decision there M$.

QuoteBy the way, how much is eComStation?

   Hmm.  Google tracked down $145 for version 2.1.  I thought
I paid less, about $99.  Anyway I used version 1.2R as I found
the CD-ROM's for that.  I wonder what happened to the newer
ones?  Not so good to lose things.  It used to be much easier to
remember where I put things.

https://shop.ecomstation.com/ecomstation-2-1/ecomstation-2-1-home-student.html

   There is a download for a demo version of 2.2 beta.

http://www.ecomstation.com/democd/

   OS/2 vice eComStation; they have updated some device drivers,
added "improved" versions of some utilities, and a cosmetic change
using a more modern look and some ease of use "upgrades".  I
got used to the OS/2 versions and do not really care for the cosmetic
and usage changes.  I do appreciate the bug fixes and new installer.
Some added utilities that used to be aftermarket purchases are
useful as well.  And the older versions of the utilities are still there
for curmudgeons like me.

   IIRC, if you install OS/2 from the Warp 4 install CD, you get the
16-bit TCP-IP stack.  And upgrading to the 32-bit version is not
easy.  If you have the later (MCP?) version of OS/2 or eCS you
install the 32-bit stack.  And support for the JFS file system.

Regards,

Steve N.
Title: Re: JWasm212 fixed TYPE
Post by: Gunther on May 20, 2015, 08:20:41 AM
Hi Steve,

wow, a lot of information about OS/2. The tricky point is: Is the GCC available? I've only an old version by Wolfgang Mattes. I think it'll be no longer maintained.

Gunther
Title: Re: JWasm212 fixed TYPE
Post by: FORTRANS on May 20, 2015, 10:00:52 PM
Hi Gunther,

   Yes, GCC is available.  Though as I do not use it I am not the
one to ask about it.  The Usenet groups under comp.os.os2.*
mention differing versions when porting Windows or Unix/Linux
code to OS/2.  A random search string from 2013.

"I have gcc335 and gcc 446"

   I do not know what version you are using.  The EMX setup?

   Names to search on?  maybe Dave Yeo or Paul Smedley?  Dave
works with Mozilla ports.  Paul ports other things.

http://os2ports.smedley.info/

Sorry I cannot help directly.

   Watcom is also available for C, C++, and Fortran if that helps.

Regards,

Steve N.
Title: Re: JWasm212 fixed TYPE
Post by: Gunther on May 21, 2015, 07:28:22 PM
Steve,

thank you for the information.
Quote from: FORTRANS on May 20, 2015, 10:00:52 PM
   Watcom is also available for C, C++, and Fortran if that helps.

Regards,

Steve N.

Yes that helps a lot and it sounds interesting.

Gunther