Author Topic: what is the maximum length of masm 16 file Name  (Read 20630 times)

Magnum

  • Member
  • *****
  • Posts: 2242
Re: what is the maximum length of masm 16 file Name
« Reply #15 on: November 19, 2013, 12:28:31 AM »
As far as XP is concerned, long file name progs do NOT work, both Masm and Tasm produced.

And using Senor Dave's code.

Code: [Select]
C:\16_BIT>longmasm7.com
Bad Command or file name

C:\16_BIT>
Take care,
                   Andy

Ubuntu-mate-16.04-desktop-amd64

http://www.goodnewsnetwork.org

FORTRANS

  • Member
  • ****
  • Posts: 946
Re: what is the maximum length of masm 16 file Name
« Reply #16 on: November 19, 2013, 01:07:10 AM »
Hi,

   Works here with Windows 98, Windows 2000, and Windows XP.

Code: [Select]
G:\WORK>COPY TEST44.COM BLABLABLABLA.COM
        1 file(s) copied.

G:\WORK>                BLABLABLABLA
G:\WORK\BLABLA~1.COM

G:\WORK>

Steve

japheth

  • Guest
Re: what is the maximum length of masm 16 file Name
« Reply #17 on: November 19, 2013, 01:19:08 AM »

IIRC, the NTVDM supports LFNs, but XP's built-in DOS-Extender DOSX does not automatically translate those functions - which is a regression compared to Win9x.  So it might be that some old DOS-extended programs ( i.e. Tasm ), which were written in the Win9X era, may indeed have problems with LFNs on XP.

dedndave

  • Member
  • *****
  • Posts: 8749
  • Still using Abacus 2.0
    • DednDave
Re: what is the maximum length of masm 16 file Name
« Reply #18 on: November 19, 2013, 02:02:28 AM »
it's a .COM (tiny) program
shouldn't matter which assembler is used, as it does not have a header

adding ".com" to the end of the commandline probably isn't helping, though

it may be a matter of xp version
i have xp mce2005 sp3, which is a "professional" edition of xp
it may not be the same on xp home editions

FORTRANS

  • Member
  • ****
  • Posts: 946
Re: what is the maximum length of masm 16 file Name
« Reply #19 on: November 19, 2013, 02:41:34 AM »
Hi,

   I seem to recall from another thread that he has short filename
support turned off.  That could hurt things like Dave's program.

Regards,

Steve N.

jj2007

  • Member
  • *****
  • Posts: 7738
  • Assembler is fun ;-)
    • MasmBasic
Re: what is the maximum length of masm 16 file Name
« Reply #20 on: November 19, 2013, 02:42:57 AM »
.model tiny
.code
   org 100h
start:
   mov ah, 09h   ; write string to STDOUT
   mov dx, 82h   ; get command line
   int 21h      ; show it... ;-)
   ret
end start


Commandline:
HelloWorldDOS.com And I told you that long filenames are fine on Win7-32....

Result:
And I told you that long filenames are fine on Win7-32.... ;)

Magnum

  • Member
  • *****
  • Posts: 2242
Re: what is the maximum length of masm 16 file Name
« Reply #21 on: November 19, 2013, 03:37:51 AM »
Thanks Steve,

I temporarily re-enabled 8.3 name creation and the progs run.

http://support.microsoft.com/kb/121007

Why I turned it off.

Code: [Select]
The creation of 8.3 filenames and directories for all long filenames and directories on NTFS partitions may decrease directory enumeration performance.

It would be nice if I could actually test if performance did actually improve.

Andy
Take care,
                   Andy

Ubuntu-mate-16.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

  • Member
  • *****
  • Posts: 8749
  • Still using Abacus 2.0
    • DednDave
Re: what is the maximum length of masm 16 file Name
« Reply #22 on: November 19, 2013, 03:45:05 AM »
it would seem that the console is a 32-bit console window, until you run a 16-bit program under it
after that, it's a 16-bit console

so - i doubt you really want to optimize your system for 16-bit programs to run

Magnum

  • Member
  • *****
  • Posts: 2242
Re: what is the maximum length of masm 16 file Name
« Reply #23 on: November 19, 2013, 04:49:31 AM »
Read this. Nothing to do with 16 bit programs.

http://support.microsoft.com/kb/121007
Take care,
                   Andy

Ubuntu-mate-16.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

  • Member
  • *****
  • Posts: 8749
  • Still using Abacus 2.0
    • DednDave
Re: what is the maximum length of masm 16 file Name
« Reply #24 on: November 19, 2013, 05:08:42 AM »
i read that
not sure how much difference it makes though

let me put it this way...
i haven't disabled 8.3 indexing on my machine, and i'm happy with the performance
not to say it couldn't be faster, of course

as for the per-instance console window
Code: [Select]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Masm32\Asm16\16-Bit Templates => blahblahblah
Hello World !

C:\Masm32\Asm16\16-BIT~1 =>
something changed from before to after
it would seem that the console became "8.3 aware", only after a 16-bit program was executed

dedndave

  • Member
  • *****
  • Posts: 8749
  • Still using Abacus 2.0
    • DednDave
Re: what is the maximum length of masm 16 file Name
« Reply #25 on: November 19, 2013, 05:12:58 AM »
in the past, i have tried disabling indexing, altogether
performance improved, in some respects, but suffered in others
i no longer do that

FORTRANS

  • Member
  • ****
  • Posts: 946
Re: what is the maximum length of masm 16 file Name
« Reply #26 on: November 19, 2013, 05:13:32 AM »
Hi,

it would seem that the console is a 32-bit console window, until you run a 16-bit program under it
after that, it's a 16-bit console

   Yes.  As far as I can deduce, CMD.EXE runs COMMAND.COM to
support 16-bit programs.  Run a program that lets you shell out
to a command line and run "MEM /D | MORE".

Regards,

Steve N.

dedndave

  • Member
  • *****
  • Posts: 8749
  • Still using Abacus 2.0
    • DednDave
Re: what is the maximum length of masm 16 file Name
« Reply #27 on: November 19, 2013, 05:31:19 AM »
shell - interesting notion, Steve
Code: [Select]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Masm32\Asm16\16-Bit Templates => cmd /c blahblahblah
C:\MASM32\ASM16\16-BIT~1\BLAHBL~1.COM

C:\Masm32\Asm16\16-Bit Templates =>
so, if you want to run a 16-bit program without making it a 16-bit window   :P
if you run command.com, it converts to 16-bit, but....
Code: [Select]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Masm32\Asm16\16-Bit Templates => cmd /c command
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

C:\MASM32\ASM16\16-BIT~1 => ver

Microsoft Windows XP [Version 5.1.2600]

C:\MASM32\ASM16\16-BIT~1 => exit

C:\Masm32\Asm16\16-Bit Templates =>

Magnum

  • Member
  • *****
  • Posts: 2242
Re: what is the maximum length of masm 16 file Name
« Reply #28 on: November 19, 2013, 06:29:15 AM »
cmd.exe gives a larger exe program size than command.com.

Take care,
                   Andy

Ubuntu-mate-16.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

  • Member
  • *****
  • Posts: 8749
  • Still using Abacus 2.0
    • DednDave
Re: what is the maximum length of masm 16 file Name
« Reply #29 on: November 19, 2013, 09:29:18 AM »
much larger, i suspect
but - command.com also requires NTVDM.dll