Author Topic: Instruction Set detection for 32 bit Operating Systems  (Read 45988 times)

FORTRANS

  • Member
  • *****
  • Posts: 1084
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #90 on: May 08, 2014, 05:53:51 AM »
Hi,

Maybe the reason is really in the console programs?

   Yes, it is looking like console programs are not supported.  Could
not even find an MS-DOS command prompt/box.  Oh well.

Just vaguely I remember that you needed a specialised linker to build a win32S application.

   Well the program that worked with Win32s was linked with the
linker that came with MASM32.

Regards,

Steve N.

Gunther

  • Member
  • *****
  • Posts: 3697
  • Forgive your enemies, but never forget their names
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #91 on: May 08, 2014, 06:09:18 AM »
Hi Steve,

Just vaguely I remember that you needed a specialised linker to build a win32S application.

   Well the program that worked with Win32s was linked with the
linker that came with MASM32.

that could perhaps help a bit.

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

dedndave

  • Member
  • *****
  • Posts: 8829
  • Still using Abacus 2.0
    • DednDave
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #92 on: May 08, 2014, 06:09:59 AM »
i seem to recall we went through all this 5 years ago when i was working on the OS ID stuff   :P
http://www.masmforum.com/board/index.php?topic=11963.msg91220#msg91220

FORTRANS

  • Member
  • *****
  • Posts: 1084
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #93 on: May 08, 2014, 06:20:26 AM »
Hi Dave,

   Good memory!

Cheers,

Steve

Gunther

  • Member
  • *****
  • Posts: 3697
  • Forgive your enemies, but never forget their names
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #94 on: May 08, 2014, 06:56:56 PM »
Dave,

i seem to recall we went through all this 5 years ago when i was working on the OS ID stuff   :P
http://www.masmforum.com/board/index.php?topic=11963.msg91220#msg91220

yes, excellent power of recall. :t

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

FORTRANS

  • Member
  • *****
  • Posts: 1084
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #95 on: May 08, 2014, 11:40:45 PM »
Hi,

Quote
Could not even find an MS-DOS command prompt/box.

   Well, that was stupid.  Just find something that can run a program,
and launch COMMAND.COM.  In a VDM it is the same as a direct
invocation of a VDM.  With MS-DOS and Win 3.11, you lose a bit of
usable memory compared to pure DOS, but you get prompt of
the hot keys to switch back to Windows.

Regards,

Steve N.

dedndave

  • Member
  • *****
  • Posts: 8829
  • Still using Abacus 2.0
    • DednDave
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #96 on: May 09, 2014, 02:32:33 AM »
not sure i understand what you're saying, Steve
as i recall, to get a command prompt in win 3.1, you exit windows
it is essentially a shell that runs under command.com
it's been a long, long time - and i wasn't much of a win 3.1 fan back then
so, i may have the facts thoroughly mangled - lol

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8126
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #97 on: May 09, 2014, 02:54:37 AM »
Dave,

Under Win3.0/1/11 you could get an instance of command.com while in Windows, it had less memory than a direct instance of command.com in DOS but did most things OK. If you wanted the real McCoy you exited Windows to DOS. There were the odd situations that Windows squarked at with a DOS prompt which followed from its ugly cooperative multitasking and if you needed some direct hardware access you had to exit to DOS.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Gunther

  • Member
  • *****
  • Posts: 3697
  • Forgive your enemies, but never forget their names
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #98 on: May 09, 2014, 04:00:48 AM »
Steve,

   Well, that was stupid.  Just find something that can run a program,
and launch COMMAND.COM.  In a VDM it is the same as a direct
invocation of a VDM.  With MS-DOS and Win 3.11, you lose a bit of
usable memory compared to pure DOS, but you get prompt of
the hot keys to switch back to Windows.

would it be a better solution to compile the entire thing with a 16-bit C compiler (for example Turbo C) and link against the 16-bit assembly procedure? All that Jazz with Win32s.

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

FORTRANS

  • Member
  • *****
  • Posts: 1084
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #99 on: May 09, 2014, 07:05:56 AM »
Hi Gunther,

   Well if you want the results from a Pentium, go ahead.  I
don't think a Win32s console program is going to work.  I was
just trying things out just to see if I could get things working
with Win32s, and got a bit carried away.  Well I did get the
one example program to work.

Regards,

Steve N.

Gunther

  • Member
  • *****
  • Posts: 3697
  • Forgive your enemies, but never forget their names
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #100 on: May 09, 2014, 07:09:52 AM »
Steve,

Well I did get the one example program to work.

no offense. It was just an idea. But your result sounds optimistic. Do you think that the other applications will work, too?

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

FORTRANS

  • Member
  • *****
  • Posts: 1084
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #101 on: May 09, 2014, 07:15:16 AM »
Hi Dave,

not sure i understand what you're saying, Steve
as i recall, to get a command prompt in win 3.1, you exit windows
it is essentially a shell that runs under command.com

   Hutch explained it pretty well.  And I had never used a DOS
session under Windows 3.x, (IIRC...).  Which is why I could not
figure out how to do it.

Regards,

Steve N.

FORTRANS

  • Member
  • *****
  • Posts: 1084
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #102 on: May 09, 2014, 07:29:52 AM »
Hi Gunther,

no offense. It was just an idea.

  And probably a good one if want to run any tests on my plain
Pentium systems.  The Pentium MMX with Win 98 works for
most programs now.  And it should show identical cycle results
anyway.

Quote
But your result sounds optimistic. Do you think that the other applications will work, too?

   Well I got a dialog program to work, maybe something
could be made to work that way.  And write the results to
a file.

   I just got involved for the idea that it might be a way to
get me to start programming in the 32-bit world.  Win32s
has been a fun diversion if nothing else.

Regards,

Steve N.

Gunther

  • Member
  • *****
  • Posts: 3697
  • Forgive your enemies, but never forget their names
Re: Instruction Set detection for 32 bit Operating Systems
« Reply #103 on: May 10, 2014, 01:54:42 AM »
Hi Steve,

  And probably a good one if want to run any tests on my plain
Pentium systems.  The Pentium MMX with Win 98 works for
most programs now.  And it should show identical cycle results
anyway.

yes, but I need a few days for finishing the 16-bit version.

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