home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10596 < prev    next >
Encoding:
Text File  |  1992-11-14  |  3.4 KB  |  99 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!think.com!ames!agate!linus!linus.mitre.org!jcmorris
  3. From: jcmorris@mwunix.mitre.org (Joe Morris)
  4. Subject: Re: Environment size hack in DOS 5?
  5. Message-ID: <jcmorris.721667130@mwunix>
  6. Sender: news@linus.mitre.org (News Service)
  7. Nntp-Posting-Host: mwunix.mitre.org
  8. Organization: The MITRE Corporation
  9. References: <1992Nov12.234502.22273@midway.uchicago.edu>
  10. Date: Fri, 13 Nov 1992 15:05:30 GMT
  11. Lines: 86
  12.  
  13. pynq@quads.uchicago.edu (George Jetson) writes:
  14.  
  15. >In versions of DOS prior to 4.0, there was a well known patch location
  16. >in COMMAND.COM that allowed you to change the default environment size.
  17. >The default was usually something like 160 bytes (0A paragraphs), which
  18. >is ridculously low.  However, it was a simple matter to use DEBUG to
  19. >patch it to something reasonable (e.g., setting the byte to 30 would get
  20. >you a 768 char [minimum] environment, in all your subshells.)
  21.  
  22. >I have spent fruitless hours perusing the DOS 5 COMMAND.COM, and have
  23. >not been able to solve this problem.  (I did it originally on a version
  24. >of DOS 3.3, long ago, in a couple of hours, so I know it should not be
  25. >that hard).  I have also spent time on DR DOS 6.0, with the same dismal
  26. >results.  I have also perused the usual gang of archive sites, and have
  27. >not found anything.  So, my question to the net is, "Does anyone know
  28. >the magic patch locations for DOS 5.0?"
  29.  
  30. >Anyone know the magic formula?
  31.  
  32. <<<< CCC RRR EEE AAA KKK >>>>   <--- sound of archive doors opening
  33.  
  34. The following is an extract from a posting last year.  I don't know
  35. if it ever made it to someone's FAQ list.
  36.  
  37. I've edited the text to remove patches which make ECHO OFF the default
  38. for batch files since you get the same result be starting a .BAT file
  39. with the line '@echo off'.  Also deleted were some general comments
  40. about finding the patch points.
  41.  
  42. I've left the headers in place but edited them so that digest programs
  43. won't mistake them for a new article.
  44.  
  45.  
  46. =-=-=-=-=-=-=-=-=-=  begin included text  =-=-=-=-=-=-=-=-=-=
  47.  
  48.  
  49. **From: NETOPRWA@ncsuvm.ncsu.edu (Wayne Aiken)
  50. **Newsgroups: comp.sys.ibm.pc.misc
  51. **Subject: Larry Rainey's DOS 5.0 patches
  52. **Date: 1 Jul 91 04:17:44 GMT
  53. **Organization: North Carolina State University Computing Center
  54. **Lines: 108
  55.  
  56. Below, I present sections of code from MicroSoft MSDOS 5.00, dis-assembled with
  57. DEBUG so that those with versions of DOS other than the ones listed above
  58. can find the offsets for their COMMAND.COM.
  59.  
  60. Here are the sections of code from MicroSoft MSDOS 5.00:
  61.  
  62. The environment size
  63.  
  64. -u 165b
  65.  
  66. 1111:165B 58            POP   AX
  67. 1111:165C C706C01E5100  MOV   WORD PTR [1EC0],0051
  68. 1111:1662 C706BE1E1000  MOV   WORD PTR [1EBE],0010  <<default envir. size>>
  69. 1111:1668 BAD498        MOV   DX,98D4
  70. 1111:166B B104          MOV   CL,04
  71. 1111:166D D3EA          SHR   DX,CL
  72. 1111:166F 8916CE1E      MOV   [1ECE],DX
  73. 1111:1673 2BC2          SUB   AX,DX
  74. 1111:1675 A39802        MOV   [0298],AX
  75. 1111:1678 A12C00        MOV   AX,[002C]
  76.  
  77. Just searching for '10 00' should find this one.
  78.  
  79.  
  80. Larry Rainey  6/11/91
  81.  
  82. Recapped in easy keyin format:
  83.  
  84. DEBUG COMMAND.COM 
  85. E 1666 20
  86. W
  87. Q
  88.  
  89. will set you environment to 512 (x'20')
  90.  
  91. Wayne Aiken             netoprwa@ncsuvm.bitnet         "You can BE what
  92. PO Box 30904            netoprwa@ncsuvm.cc.ncsu.edu     you WON'T!!"
  93. Raleigh, NC  27622      slack@ncsu.edu                   --"Bob"
  94. (919) 782-8171          StarFleet BBS: (919) 782-3095
  95.  
  96. =-=-=-=-=-=-=-=-=-=  end included text  =-=-=-=-=-=-=-=-=-=
  97.  
  98. Joe Morris / MITRE
  99.