home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / v / v93n02y.zip / V93N024.IBM < prev    next >
Internet Message Format  |  1993-02-17  |  29KB

  1. From:    WF02::IN%"Info-IBMPC%wsmr-simtel20.ARMY.mil@WS5.CIS.TEMPLE.EDU" 16-FEB-1993 23:44:47.25
  2. To:    James Gerber <GERBER@TMPLCIS.BITNET>
  3. CC:    
  4. Subj:    Info-IBMPC Digest V93 #24
  5.  
  6. Return-path: $$INFOPC
  7.  <@WS5.CIS.TEMPLE.EDU:$$INFOPC%VM.TEMPLE.EDU@RICEVM1.BITNET>
  8. Received: from JNET-DAEMON by GRAD.CIS.TEMPLE.EDU; Tue, 16 Feb 93 22:43 EST
  9. Received: From TEMPLEVM(MAILER) by TMPLCIS with Jnet id 5194 for
  10.  GERBER@TMPLCIS; Tue, 16 Feb 93 22:43 EDT
  11. Received: from TEMPLEVM.BITNET (NJE origin LISTSERV@TEMPLEVM) by VM.TEMPLE.EDU
  12.  (LMail V1.1c/1.7e) with BSMTP id 8717; Tue, 16 Feb 1993 21:43:41 -0500
  13. Date: Mon, 15 Feb 1993 16:40:50 GMT+1
  14. From: Info-IBMPC Digest <Info-IBMPC%wsmr-simtel20.Army.mil@WS5.CIS.TEMPLE.EDU>
  15. Subject: Info-IBMPC Digest V93 #24
  16. Sender: Info-IBMPC redistribution list <$$INFOPC@RICEVM1.BITNET>
  17. To: James Gerber <GERBER@TMPLCIS.BITNET>
  18. Reply-to: Info-IBMPC%wsmr-simtel20.ARMY.mil@WS5.CIS.TEMPLE.EDU
  19.  
  20. Info-IBMPC Digest           Mon, 15 Feb 93       Volume 93 : Issue  24
  21.  
  22. Today's Editor:
  23.          Gregory Hicks - Rota Spain <GHICKS@wsmr-simtel20.Army.Mil>
  24.  
  25. Today's Topics:
  26.                       .com and .exe files (3 msgs)
  27.            Can you run an XT on it side? (among other things)
  28.                      Disappearing diskette drives?
  29.                    Diskette read errors and data loss
  30.                             dual IDE drives.
  31.                  Expanding the size of a disk partition
  32.                         EXTENDED memory accesses
  33.                     Help - DOS commands from program
  34.    Deleting disk partition with DOS 5.0 (don't know volume) (2 msgs)
  35.                  multiple mouse cursors on my screen!!
  36.                    PC/AT System Board Initialization
  37.                    Protected mode source code example
  38.                  Stacker Drive write-protected somehow
  39.                  SUMMARY: UNIX-style links under MS-DOS
  40.                 Undocumented config.sys params (2 msgs)
  41.  
  42. Send Replies or notes for publication to: <INFO-IBMPC@brl.mil>
  43.  
  44. Send requests of an administrative nature (addition to, deletion from
  45. the distribution list, et al) to: <INFO-IBMPC-REQUEST@brl.mil>
  46.  
  47. Addition and Deletion requests for UK readers should be sent to:
  48. <INFO-IBMPC-REQUEST@DARESBURY.AC.UK>
  49.  
  50. Archives of past issues of the Info-IBMPC Digest are available by FTP
  51. ONLY from WSMR-SIMTEL20.ARMY.MIL in directory PD2:<ARCHIVES.IBMPC>.
  52.  
  53. ----------------------------------------------------------------------
  54.  
  55. Date: 28 Jan 93 10:15:25 GMT
  56. From: "M.E. Edwards" <M.E.Edwards@newcastle.ac.uk>
  57. Subject: .com and .exe files
  58.  
  59. fprince@cwis.unomaha.edu (Frank E. Prince) writes:
  60.  
  61. >Could anyone tell me the difference between .com and .exe files. The
  62. >most I've come up with is that a com file is an "executable memory image"
  63. >but that definition was somewhat out of context, and I don't really
  64. >understand it. I've done some assembly language programming with MASM so
  65. >I do understand instruction sets, stacks, registers etc. Any information
  66. >regarding this is much appreciated.
  67.  
  68. I've posted this since it may be of general interest to others as well.
  69.  
  70. As far as I understand, a .com file is a direct memory dump (ie no code
  71. relocation can take place) whereas an .exe file contains offsets and
  72. indirection allowing it to be run from (more or less) any location in
  73. memory.
  74.  
  75. Thus, a .com file can be loaded and executed slightly faster than
  76. an.exe file since the processor only has to load the code to a set area
  77. (usually the base of user memory) and jump straight to it.
  78.  
  79. The only problem with .com files is that there is no separation between
  80. the code segments.  Thus the stack and data segments share the same
  81. memory area.  Thus some compilers may throw out the code.
  82.  
  83. Using Borland Turbo C++, I find that the tiny memory model will
  84. suffice, so compile your code with that and as long as the executable
  85. file is less than 64k in length then quit to dos and type :
  86.  
  87.                         exe2bin <filename>.exe <filename>.com
  88.  
  89. and this will transform your .exe file into a .com file (so now we all
  90. know what this little DOS utility is for :-) ).
  91.  
  92. So, hope this helps?
  93.  
  94. Cheers,  Mark...
  95.  
  96.    Snail Mail : M.E.Edwards,204 Farndale Road, Benwell, Newcastle-Upon-Tyne.
  97.    Email : M.E.Edwards@uk.ac.newcastle                  Phone : 091-273 4932
  98.            "Do not adjust your mind ... there is a fault in reality"
  99. #include <StdDisclaimer.h>
  100.  
  101. ------------------------------
  102.  
  103. Date: 26 Jan 93 16:10:19 GMT
  104. From: "Pardhasaradhi A. Reddy" <reddyp@ucunix.san.uc.edu>
  105. Subject: .com and .exe files
  106.  
  107. The following are some notable differences between .com and
  108. .exe files :
  109.  
  110. .com : All the three segments namely CODE, DATA and STACK point to the
  111. same segment. In other words, the program can only occupy 64k memory.
  112.  
  113. A .com file has no header like that of a .exe file. Such a program is a
  114. exact copy of how the same program would look if loaded into memory.
  115.  
  116. .exe : Can have any no. of segments for CODE, DATA and STACK.
  117.  
  118. It has a header that stores the info about the address of the first
  119. executable instruction, relocation info. etc.
  120.  
  121. The following book gives a detailed description of the differences :
  122.  
  123.         IBM Assembler language  -> Peter Abel.
  124. Also , Advanced MSDOS  -> Ray Duncan (the best)
  125.  
  126.         regards,
  127.         Pardha.
  128.  
  129. --
  130.  Disclaimer : Views expressed by me are purely mine and have nothing to
  131. do with those of my employer's or any Organization. Reader's discretion
  132. is strongly advised.
  133.  
  134. ------------------------------
  135.  
  136. Date: 28 Jan 93 21:31:45 GMT
  137. From: Paul Erickson <paul@resumix.portal.com>
  138. Subject: .com and .exe files
  139.  
  140. ... [After discussing differences between .com and .exe files,
  141. mcastle@cs.umr.edu (Michael R Castle) asks:
  142.  
  143. >Question:  Can't com files use more than 64k?  Once the program is going,
  144. >you can pretty much do what ever you want with the segment registers, and
  145. >request more memory, and access the full 640 k.
  146.  
  147. the standard action of a com file is to locate the data, stack and code
  148. all within one segment.  However, their is not this limitation on the
  149. heap.  Therefore, the program can allocate as much memory (malloc or
  150. getmem or new) as the machine has availiable.  Also the CS and DS
  151. segment registers can be modified directly, but unless you are
  152. experienced with how DOS handles memory this is not a good idea.
  153.  
  154. ------------------------------
  155.  
  156. Date: Thu, 4 Feb 93 12:55:42 EST
  157. From: grant@itd.nrl.navy.mil (William Grant)
  158. Subject: Can you run an XT on it side? (among other things)
  159.  
  160. I ran an old PX XT clone on its side for many years.  It works just
  161. fine, but there are a few points to keep in mind:
  162.  
  163.         a) backup the HD, completely reformat it while on its side,
  164. restore your backup (The older drives would get slightly out of
  165. alignment when on their side.  Formatting them this way solves it.)
  166.  
  167.         b) keep the machine at least a little off the floor (This helps
  168. avoid dust and flooding problems)
  169.  
  170.         c) vacuum it out occasionally (Check internally from time to
  171. time and determine how long you can go without in your situation.)
  172.  
  173. Best of Luck
  174.  
  175. Disclaimer:
  176.    Whatever you say, say nothing, when you talk about you-know-what,
  177.    For if you-know-who should hear you, you know what you'll get.
  178.  
  179. Leprechaun Liam                                 Grant@itd.nrl.navy.mil
  180. Code 5541, NRL, Wash. DC 20375-5337,  (202)767-0552 W  (301)937-2567 H
  181.  
  182. ------------------------------
  183.  
  184. Date: 29 Jan 93 14:08:17 GMT
  185. From: Lance Hartmann <lance@hartmann.austin.ibm.com>
  186. Subject: Disappearing diskette drives?
  187. Keywords: diskette windows win3.1 msd checkit
  188. Summary: Floppy drives vanish over time from system configuration.
  189.  
  190. Does anyone know EXACTLY how CHECKIT and Windows' MSD diagnostic
  191. programs check the existence and type of diskette drives on a system?
  192.  
  193. I've been plagued with a problem over the past couple of months whereby
  194. my diskette drives, A: and B:, mysteriously vanish from all dialog
  195. boxes under Windows 3.1 after I've been working awhile (a couple
  196. hours).  Despite the fact that the drives do NOT appear in DISK popups
  197. and File Manager, I am still able to access the drives; likewise for
  198. DOS.
  199.  
  200. Recently, when I noticed that the drives "disappeared" from Windows, I
  201. exited and re-started Windows.  No dice -- drives still missing.  I
  202. exited Windows again (NOT escaped, but terminated it) and then ran the
  203. CHECKIT program.  Upon selecting the CONFIGuration option, CHECKIT
  204. reports that the diskette drives are missing too!!  The hard drives C:
  205. and D: are still there, but the floppies are gone.  Again, I'm still
  206. able to access the floppies, but even CHECKIT under a "pure" DOS
  207. environment states they're missing!
  208.  
  209. I decided then to run Windows' MSD program.  Upon doing so, it
  210. SUCCESSFULLY finds the diskette drives and even reports their
  211. configuration (5.25, 3.5, etc.).  I find it particularly confusing that
  212. Windows' diagnostic program locates the diskette drives, but the
  213. Windows' environment cannot!  I can toggle back and forth between
  214. running CHECKIT and MSD.  Each time, CHECKIT shows no floppies, and MSD
  215. does find them!  Upon a hard reboot, the floppies re-appear everywhere
  216. (Windows, Checkit, etc.).
  217.  
  218. I'll probably take my machine into the shop, but if anyone has any
  219. insight to what may be going on, I'd really like hearing from you.
  220.  
  221. My system:  486DX50 (NOT DX2 -- yes, I have a heatsink/fan, too),
  222.             256K cache, 8MB RAM, AMI BIOS, ETEQ chipset, ISA bus at
  223.             regular speed, Promise Technology DC-2040 SCSI controller.
  224.  
  225. Thanks to all in advance,
  226. Lance Hartmann (lance%hartmann.austin.ibm.com@ibmpa.awdpa.ibm.com)
  227.                Yes, that IS a '%' (percent sign) in my network address.
  228.  
  229. All statements, comments, opinions, etc. herein reflect those of the author
  230. and shall NOT be misconstrued as those of IBM or anyone else for that matter.
  231.  
  232. ------------------------------
  233.  
  234. Date: 1 Feb 93 14:13:38 GMT
  235. From: Johannes Beekhuizen <johannes.beekhuizen@contrast.wlink.nl>
  236. Subject: Diskette read errors and data loss.
  237.  
  238. Hello Frank,
  239.  
  240. On Friday January 29 1993, Frank Slootweg CRC wrote to All:
  241.  
  242.  >> controller.   If the drive and/or controller is bad, then that does
  243.  >> not really  explain why my son is not having any problems on my
  244.  >> system, but  perhaps/probably he also sometimes writes his diskettes
  245.  >> on another  computer (mainly at his friend) and this
  246.  
  247. I had this problem once, on diskettes which I wrote to, tested, and
  248. then put in the box. Some weeks later they had errors. It turned out
  249. that they were standing to close to the monitor, which emitted a very
  250. strong megnetic field when switched on or off.
  251.  
  252. Regards,
  253.  
  254.            Hans.
  255.  
  256. fidonet  2:281/527.5
  257. yan-net  123:3183/101
  258. e-mail   johannes.beekhuizen@contrast.wlink.nl
  259.  
  260. ------------------------------
  261.  
  262. Date: 1 Feb 93 08:01:02 GMT
  263. From: Clifton R Peterson <cpetersn@iastate.edu>
  264. Subject: dual IDE drives.
  265.  
  266. As I understand IDE drives, if you have two of them, you need to
  267. designate one as the "MASTER" and the other as the "SLAVE".  This is
  268. generally accomplished by means of jumpers on the drives themselves.
  269. What this does is make the SLAVE wait 4 seconds for spinup after power
  270. application to both reduce the demain on you power supply and ensure
  271. that the master is the boot drive.  I don't have any documentation for
  272. your older drive, but for the Western Digital, the following should
  273. apply.
  274.  
  275. The jumpers you need to look for is the J8 which should be at the back
  276. of the drive just to the left of the power connector.
  277.  
  278. For single Western Digital;
  279.  
  280.         5  3  1
  281.        ---------
  282.       | o  o  o |
  283.       |         |
  284.       | o  o  o |
  285.        ---------
  286.         6  4  2
  287.  
  288. Master drive configuration (jump pins 5 and 6);
  289.  
  290.         5  3  1
  291.        ---------
  292.       | +  o  o |
  293.       | |       |
  294.       | +  o  o |
  295.        ---------
  296.         6  4  2
  297.  
  298. Slave drive configuration (jump pins 3 and 4);
  299.  
  300.         5  3  1
  301.        ---------
  302.       | o  +  o |
  303.       |    |    |
  304.       | o  +  o |
  305.        ---------
  306.         6  4  2
  307.  
  308. I hope this helps and is actually accurate.
  309. --
  310.  _________________________________________________________________________
  311. / Clifton R. Peterson    1108 Burnett           (515)232-5254             \
  312. | B.S. Chem E            Ames IA  50010                                   |
  313. \_______________"42"_is_one_hell_of_an_answer!!___________________________/
  314.  
  315. ------------------------------
  316.  
  317. Date: 28 Jan 93 21:55:04 GMT
  318. From: Paul S Secinaro <pss1@kepler.unh.edu>
  319. Subject: Expanding the size of a disk partition
  320.  
  321. Assuming I have removed all the other partitions on the hard disk, is
  322. there any way to safely increase the size of the primary C: partition
  323. without losing any data?  Are there any reliable utilities that will do
  324. this?
  325.  
  326. In case it matters, I'm using a Maxtor Panther P0-12S 1.2GB SCSI hard
  327. disk and a DTC 3290HD SCSI EISA controller.  I have a primary partition
  328. of 200MB and an 800MB extended partition (DOS 5.0 format).  I'd like to
  329. expand the primary to at least 400MB.
  330.  
  331. Thanks!
  332.  
  333. Paul
  334.  
  335. --
  336. Paul Secinaro
  337. pss1@kepler.unh.edu
  338. Synthetic Vision and Pattern Analysis Laboratory
  339. UNH Dept. of Electrical and Computer Engineering
  340.  
  341. ------------------------------
  342.  
  343. Date: 27 Jan 93 16:19:02 GMT
  344. From: Roman Baker <baker@berlioz.nsc.com>
  345. Subject: EXTENDED memory accesses
  346. Keywords: extended emm386
  347.  
  348. I need to develop a program that will access memory in the 1M-16M
  349. memory range.  I realize that I will probably have to go through a
  350. memory manager (like emm386, QEMM, 386Max) but could someone tell me
  351. the procedure for accessing this memory.  Also, what addresses are
  352. going to show up on the bus if I access C00000?
  353.  
  354. Thank you,
  355.  
  356. Roman Baker
  357. National Semiconductor Corp
  358.  
  359. ------------------------------
  360.  
  361. Date: 27 Jan 93 02:31:43 GMT
  362. From: "G. David Douglas Jr." <douglas@cs.scarolina.edu>
  363. Subject: Help - DOS commands from program...
  364.  
  365. jmeyers@ecst.csuchico.edu (Jeff Meyers) writes:
  366.  
  367. >I have written a simple installation program in Turbo Pascal and am having
  368. >trouble executing DOS commands from within this program.
  369.  
  370. >If the user types "a:install" everything works fine.  But, if they log to
  371. >the floppy first, then run install ( A:\>install <cr> ) things choke.
  372.  
  373. >Specifically, the destination directory is not created and so the files
  374. >are all copied into a file in the root directory.  I use the Turbo Pascal
  375. >command exec() to call the following command:
  376.  
  377. >    \command.com /C md C:\DEST
  378.  
  379. >I also had trouble logging drives and changing directories under program
  380. >control, but got around that by haveing the install program create the
  381. >appropriate batch file, then executing it...
  382.  
  383. >Question: am I missing something? Why don't the DOS commands work the
  384. >same as at the command line??
  385.  
  386. Well, ideally I'd like to have more information, but here's a hunch:
  387.  
  388. Does the floppy disk you're trying to run the utility from have a copy
  389. of COMMAND.COM on it?  If not, and if you're trying to execute
  390. \COMMAND.COM instead of C:\COMMAND.COM, for instance, it probably won't
  391. work -- can't find COMMAND on the floppy disk, so can't execute it.
  392.  
  393. Also, I don't know which version of Turbo Pascal you're using, but:
  394. does a command like getenv (or get environment entry) exist in your
  395. version?  If so, you could retrieve the (it _should_ be there) string
  396. associated with the COMSPEC environment variable, and use THAT for the
  397. drive-name/directory-path to a copy of COMMAND.COM to execute.
  398.  
  399. Just my opinion on what MIGHT be wrong.
  400.  
  401. One last note:  I once wrote a utility (under Turbo Pascal 3.1 (old, I
  402. know :-)) that does some of the operations (change drive, change
  403. directory, etc.) you describe; problem is, nothing like the  exec
  404. command was around (had to write my own code to do that).  If I
  405. remember correctly, version 3.1 had a command called  chdir  (change
  406. directory) -- does yours?  (Change drive was something else -- I ended
  407. up using the DOS-services (MSDOS ?) function to change disk drive,
  408. change file attributes, etc.) Drop me a line if you'd like a copy of
  409. the source code (now just collecting dust on my disk drive :-).
  410.  
  411. David Douglas
  412. douglas@usceast.cs.scarolina.edu
  413.  
  414. ------------------------------
  415.  
  416. Date: 30 Jan 93 03:38:57 GMT
  417. From: Todd Booth <tbooth@netcom.com>
  418. Subject: How to delete disk partition with DOS 5.0 (don't know volume)
  419.  
  420. My hard disk is hosed.  How do I delete the primary disk partition when
  421. I don't know the volume name.  DOS requests the volume name but I don't
  422. know how to enter it since it is all in special characters (>128) and I
  423. don't know the ascii map.  I am aware of the ALT+decimal method but
  424. don't know the required chars.
  425.  
  426. --todd
  427.  
  428. ------------------------------
  429.  
  430. Date: 1 Feb 93 01:54:19 GMT
  431. From: Doug Merrett <dcm@iris.mincom.oz.au>
  432. Subject: Deleting disk partition with DOS 5.0 (don't know volume)
  433.  
  434. Use Norton Utilities (et al) to fill the first physical sector with 0's
  435.  
  436. Doug Merrett
  437. Internet: dcm@mincom.oz.au
  438.  
  439. ------------------------------
  440.  
  441. Date: 1 Feb 93 01:27:23 GMT
  442. From: Leonard Erickson <leonard@qiclab.scn.rain.com>
  443. Subject: multiple mouse cursors on my screen!!
  444.  
  445. troberts@guvax.acc.georgetown.edu writes:
  446.  
  447. >I'm writing a text-editing program in BC++ to take advantage of the
  448. >extended text modes of my video card.  The windowing structures work
  449. >fine in the normal text modes (80x25, 80x43/50), but when I switch to
  450. >the 132 column x 44 row mode, I get sixteen (16) mouse cursors!
  451. >I move the mouse, and sixteen text cursors float all over the screen,
  452. >leaving "garbage" characters behind them.
  453.  
  454. >I want to make my application self configuring, so that it would adapt
  455. >itself to the text resolution of the system when the program was
  456. >called.  (So that I (or any one else) could set the resolution to the
  457. >desired width and height at the dos command line and call my program.)
  458.  
  459. >Do I need a special video driver to run in extended text mode?  (I
  460. >noticed that the conio.h functions would not show up in the extended
  461. >text mode in some other programs.)  My video card is built into my
  462. >motherboard.  It has a Western Digital chip and 512k video memory.
  463.  
  464. The problem is the *mouse* driver. Microsoft *hard-coded* the modes
  465. into the driver. Whatever mode number your card uses for 132x44 *text*
  466. mode is one that Microsoft has assigned as being a *graphics* mode. So
  467. the driver is trying to do a *graphics* cursor (with the results you've
  468. seen).
  469.  
  470. It took me two weeks of digging to get Microsoft to admit that. And
  471. they have the gall to claim that the *cards* are broken, not their
  472. driver.  They claim that the modes are non-standard (so what are the
  473. modes they support?)
  474.  
  475. Here are the relevant sections of my email with Microsoft:
  476.  
  477. Subj:  Mouse text cursor                       Section: Mouse/Paintbrush
  478. From:  Leonard Erickson                        # 135785, 1 Reply
  479.   To:  Bill Starbuck            70042,344      Date: 02-Mar-92 17:38:00
  480.  
  481. Bill,
  482.         For what it's worth, the compaq (like most cards with extended
  483. text modes) assigns mode numbers to the "non standard" modes. Here's a
  484. table of a few of the modes ("mode" is the *decimal* value stored at
  485. $0040:$0049,col is $0040:$004A, and rows is $0040:$0084 + 1)
  486.  
  487. mode    cols    rows
  488. 3       80      25      color
  489. 34      132     43      color
  490. 35      132     25      color
  491. 36      132     28      color
  492. 39      132     50      color
  493. 40      132     60      color
  494.  
  495. In none of these modes does the cursor info (word at $0040:$0060) have
  496. the "graphics" bit set.
  497.  
  498. I seem to vaguely recall hearing that the Microsoft mouse drivers
  499. *assume* that modes above some number are graphics modes. I hope not,
  500. as that is a *bad* assumption! But I am curious as to how they *do*
  501. make such a determination...
  502.  
  503.  Subj:  Mouse text cursor                       Section: Mouse/Paintbrush
  504. From:  Hardware(SL)             76701,244      # 135845, 1 Reply
  505.   To:  Leonard Erickson                        Date: 02-Mar-92 21:10:01
  506.  
  507. Leonard,
  508.      You have just sort of hit on your problem.  The hex video mode you
  509. are running is not on that is supported by the 8.x Mouse Drivers.
  510.  
  511.      The only hex modes that are close are:
  512.  
  513. 41 - 132 x 25
  514. 42 - 132 x 43
  515. 44 - 100 x 60
  516. 45 - 132 x 28
  517. 60 - 132 x 25
  518. 61 - 132 x 50
  519.  
  520.     So, if you can switch into any of these hex video modes, you
  521. shouldn't have any more problems.
  522.  
  523. Ron White - Microsoft Product Support
  524.  
  525. Leonard Erickson                      leonard@qiclab.scn.rain.com
  526. CIS: [70465,203]                         70465.203@compuserve.com
  527. FIDO:   1:105/51         Leonard.Erickson@f51.n105.z1.fidonet.org
  528. (The CIS & Fido addresses are preferred)
  529.  
  530. ------------------------------
  531.  
  532. Date: 28 Jan 93 22:24:48 GMT
  533. From: Steve Morvai <morvai@ncs.dnd.ca>
  534. Subject: PC/AT System Board Initialization
  535. Keywords: PC/AT Hardware Initialization
  536. Summary: Information on initializing the PC/AT system board components
  537.  
  538.   Could someone provide information (articles, documents, referrences)
  539. or sample sources (C, ASM) outlining the procedure to initialize the
  540. PC/AT system board components following power-up in a similar manner
  541. that the BIOS does.  The system components include the timer, interrupt
  542. controller, DMA, keyboard controller, etc ... The intended purpose is
  543. to replace the BIOS with an embedded application operating as a
  544. diskless system.
  545.  
  546.   Replies to "morvai@ncs.dnd.ca" or the newsgroup is much appreciated.
  547.  
  548.   -SRM
  549.  
  550. ------------------------------
  551.  
  552. Date: 26 Jan 93 21:48:52 GMT
  553. From: Dennis Marer <dmarer@td2cad.intel.com>
  554. Subject: Protected mode source code example - I'll send it to you.
  555.  
  556. In article <93026.100558KDW103@psuvm.psu.edu> KDW103@psuvm.psu.edu writes:
  557. >    Does anyone have any source code already typed in that they would be
  558. >willing to share with the rest of us?  I want to try programming in protected
  559. >mode, but I HATE typing assembly listings out of books.  Anything from books or
  560. >your own code if you're willing to share it would be appreciated.
  561.  
  562. For anybody that's interested, I do have such an example.  At this
  563. point, I don't guarantee it's 100% correct, but it initializes
  564. Protected Mode from DOS, setting up the IDT, GDT, LDT, shifting
  565. hardware interrupts so they don't conflict with the reserved Intel
  566. interrupts, and so on.  It's very primitive at this time, but it gets
  567. the point across.  Once in Protected Mode, it writes messages to the
  568. screen and tests the new interrupts.  It does NOT emulate the DOS
  569. interrupts, so this causes a few problems:
  570.  
  571.         1) The floppy drive motor stays on indefinitely
  572.         2) You can't exit back to DOS once running this program
  573.  
  574. If you're interested, drop me some e-mail and I'll send it to you in a
  575. couple of days.  It's completely free and copyable.  It's also got
  576. nothing to do with my work at Intel - I don't get to play with
  577. Protected Mode here! :-( It's very documented (over documented?) so it
  578. should be easy to understand, given familiarity with the 386.
  579.  
  580. One more thing - it was written using Turbo Assembler, so it will
  581. require a few modifications to assemble under MASM, etc.
  582.  
  583.                                 Dennis Marer
  584.                                 dmarer@td2cad.intel.com
  585.  
  586. -- Not speaking for Intel
  587.  
  588. ------------------------------
  589.  
  590. Date: Thu,  4 Feb 93 09:25:15 EST
  591. From: mramesh@ihlpe.att.com
  592. Subject: Stacker Drive write-protected somehow
  593. Keywords: stacker print windows
  594.  
  595. I was running windows 3.1 and tried to print to a laser printer.  It
  596. came back and said - printer not connected - try again.  I did that and
  597. then it said - very low on memory - close applications I did that and
  598. then it said - Extremely low on memory and stayed hung.  I did a reset.
  599.  
  600. ( By the way I have stacker installed - so I have aD drive.)
  601.  
  602. During the intial boot message it said D is write protected run scheck
  603. /f which is a stacker command.
  604.  
  605. I ran scheck /f - it complained about a few files and then hung itself.
  606.  
  607. Now used the Norton utilities but it complains that the drive D is
  608. write protected.
  609.  
  610. I did a chkdsk /v/f and it complained about some cross-links between
  611. files and then some FAT-1 and FAT-2 were corrupt.
  612.  
  613. What can I do to atleast make the drive D read/write.  I know I can do
  614. it all over again but that is the last resort.
  615.  
  616. Any help appreciated.
  617.  
  618. Thanks
  619. Masoor Ramesh
  620.  
  621. ------------------------------
  622.  
  623. Date: 27 Jan 93 19:41:49 GMT
  624. From: Pete Gontier <gurgle@netcom.com>
  625. Subject: SUMMARY: UNIX-style links under MS-DOS
  626. Keywords: link DOS unix
  627.  
  628. I don't remember if I promised a summary, but I got such high-quality
  629. repsonses that I figured I owed one.
  630.  
  631. My problem was this: due to #include file directory search limitations
  632. of typical DOS C compilers (Borland, Microsoft), our highly
  633. hierarchical source structure was giving us fits. We were trying to
  634. specify too many directories for the compiler to search; the command
  635. line was full and the relevant environment variable(s) was (were) full.
  636.  
  637. I was hoping that someone had hacked DOS to support UNIX-style links. I
  638. could then create a directory and fill it with links to files deeply
  639. nested in our hierarchy. I could then instruct the compiler to look in
  640. only that one place for #include files.
  641.  
  642. It turns out that this is: 1) not necessary, 2) not possible. :-)
  643.  
  644. DOS apparently maintains in its directory a direct reference to a
  645. file's location on disk. (UNIX uses an indirect reference.) If one were
  646. to create a "link" under DOS, it would point to the right place on the
  647. disk only until the file were modified. DOS would dutifully update the
  648. file's "real" directory entry, and the link would get stale. The DOS
  649. tool CHKDSK would eventually complain and try to "fix" the link.
  650.  
  651. Another possibility I imagined might work would be to patch DOS with a
  652. TSR (terminate-and-stay-resident program). Several people wrote to tell
  653. me this would be compatibility hell, in terms of both other hacks and
  654. Windows, which doesn't necessarily go through official DOS file system
  655. channels when it wants to mess with the file system.
  656.  
  657. A good suggestion, put foward by several people, was to use the DOS
  658. SUBST or JOIN command in whatever way was appropriate. Apparently SUBST
  659. lets you assign a drive letter to an arbitrary directory, which means I
  660. could "alias" C:\FOO\BAR\BAZ\QUUX to Q:.  Specifying Q: to the compiler
  661. would be a lot shorter than the pathname. Apparently JOIN is similar to
  662. UNIX mount.
  663.  
  664. Another good suggestion, put forward by several more people, was to
  665. create dummy header files in one directory. A file called "QUUX.H"
  666. might contain
  667.  
  668.         #include "\FOO\BAR\BAZ\QUUX.H"
  669.  
  670. Several schemes were mentioned which allowed one to at least partially
  671. automate the creation of these dummy header files, inlcuding using the
  672. DIR /S command in various ways.
  673.  
  674. Thanks to all who responded.
  675.  
  676. P.S. Some people 1) suggested that the next version of DR DOS might
  677. support links. 2) told me that they were working on a relatively safe
  678. method for creating links under DOS. Keep your eyes and ears open for
  679. both.
  680.  
  681.  Pete Gontier // EC Technology // gurgle@netcom.com
  682.  
  683. ------------------------------
  684.  
  685. Date: 1 Feb 93 21:10:03 GMT
  686. From: Douglas Pokorny <drp@camelot.bradley.edu>
  687. Subject: Undocumented config.sys params
  688.  
  689. Today I was busy browsing through the file io.sys from MS-DOS 5.0 and I
  690. noticed two undocumented commands for config.sys.
  691.  
  692. The first is COMMENT, which appears to have the same effect as REM.
  693.  
  694. The second, however, is called MULTITRACK.  I have been unable to
  695. figure out what this parameter specifies.
  696.  
  697. Does anyone out there in net-land have a clue as to what the multitrack
  698. command does?
  699.  
  700. Thanks for any pointers!
  701.  
  702. -Douglas
  703.  
  704.    Douglas R. Pokorny
  705.    drp@camelot.bradley.edu
  706.    CS major/Geisert Hall Resident
  707.   Bradley   University    "The Harvard of the Midwest"
  708.  
  709. ------------------------------
  710.  
  711. Date: 2 Feb 93 11:48:15 GMT
  712. From: gerrits@research.ptt.nl
  713. Subject: Undocumented config.sys params
  714.  
  715. I found another one: 'SWITCHES=' which accept at least the next line
  716.  
  717.  SWITCHES=/k
  718.  
  719. According to some docs this means something like "Support for enhaced
  720. keyboards" of which I concluded that <F11> and <F12> may now be
  721. processed by INT 16h, AH=00h and 01h in stead of AH=10h or 11h.  But
  722. this isn't true...
  723.  
  724. Rob Gerrits.
  725.  
  726. ------------------------------
  727.  
  728. End of Info-IBMPC Digest V93 #24
  729. ********************************
  730. -------
  731.