Info-IBMPC@WSMR-SIMTEL20.ARMY.MIL (05/06/89)
Info-IBMPC Digest Sat, 6 May 89 Volume 89 : Issue 50 Today's Editor: Gregory Hicks - Chinhae Korea <COMFLEACT@Taegu-EMH1.army.mil> Today's Topics: Day of week 256 Color .GIF files, anyone Good Math Packages Hercules Mouse Driver, INT 10, and Graphics PK's ZIP program Quick reference list to Simtel20's MSDOS directories Simtel20 ftp (3 msgs) Today's Queries: Fax Program Standardization Passing Parameters to BAT files Help with overhead projection systems TSR for Periodic execution of a Function info needed on Zeos & Northgate 386 Clones Linking TurboC programs with MSC libraries LOGITECH Mouse Programmers manual Print screen with Postscript printers TurboC and malloc Ventura Publisher 1.1 and 8087 coprocessor Wendin Xebec 1420 Controller Documentation ---------------------------------------------------------------------- Date: Tue, 2 May 89 11:43:43 CDT From: Thomas Joseph Dwyer III <DWYERIII%MTUS5.bitnet@cunyvm.cuny.edu> Subject: Day of week Here's a nifty trick I found for getting the day of the week for a given date. The trick is to let DOS do the work. Just save today's date, replace it with the date in question, and then ask DOS what day it is. The DOS service 2Ah returns the day of the week in the DL register. Don't forget to put today's date back though. :-) One limitation for this is the fact that the PC cannot have a date before 01-01-80 in the real time clock. Thomas Dwyer III DWYERIII @ MTUS5.BITNET Consultant TOMIII @ MTUS5.BITNET Academic Computing Services Michigan Technological University 434 E. Wadsworth Hall Houghton, MI 49931-1193 (906) 487-1053 ------------------------------ Date: Tue, 02 May 89 17:15:41 EDT From: Weng Loh <LKOKWENG%SBCCVM.BITNET@CUNYVM.CUNY.EDU> Subject: Re: 256-Color .GIF files, anyone? On Sun, 30 Apr 89 20:06:17 BST <Info-IBMPC@WSMR-SIMTEL20.ARMY.MIL> said: >Date: Wed, 26 Apr 89 21:37:23 EDT >From: The Time Traveler <HE891C%GWUVM.BITNET@CORNELLC.cit.cornell.edu> > >I'm trying to start a collection of MCGA 256-color .GIF files. I know >that CompuServe has the main collection, but I don't have access to >CompuServe. Those that have any, could you please send them to me? I >already have CLOWN and PARROT from Simtel-20. I'd also be happy to send >any I have to anyone. Thanx in advance. > A large collection (several megabytes worth) of GIF files are available by anonymous ftp from the following places: hubcap.clemson.edu (192.5.219.1) surya.waterloo.edu (129.97.129.72) and uxe.cso.uiuc.edu (128.174.5.54) ------------------------------ Date: 3 May 89 09:02:24 PDT (Wed) From: brian@motodog.sjc.csd.mot.COM (Brian Smithson) Subject: Re: good math packages A recent issue of PC Magazine reviewed a number of math packages. Top-rated for interactive "blackboard"-type of work was MathCAD. Top-rated for programmable work was Gauss. Check out the reviews. Both packages are quite impressive, but you should carefully select the one that best suits your needs. -Brian Smithson, Motorola Inc., Computer Systems Division 10700 N. De Anza Boulevard, Cupertino, CA 95014 USA, (408)864-2225 brian@csd.mot.com, {apple, pyramid, hplabs!hpda}!motcsd!brian ------------------------------ Date: Wed May 03 09:20:36 1989 From: Gregory Hicks <ghicks@wsmr-simtel20.army.mil> Subject: Re: Hercules Mouse Driver, INT 10, and Graphics... <ROME%ATF.MFENET@CCC.MFECC.LLNL.GOV> provided some discussion regarding this in Digest V89 #48. James R. Van Zandt <jrv@mbunix.mitre.org> provided additional information provided by other sources around the net (See V89 #49). I contacted MS and was put in touch with the Hardware Support Department and was provided the following information regarding the problem of mouse drivers, INT 10 and programming the mouse for Hercules graphics mode. He also provided a small fragment of code that should show the mouse cursor as well as printing the coordinates. Unfortunately, I can't test this because, to date, I don't have a mouse. (My wife doesn't want me to buy one yet... Someday...) An update to the Microsoft Mouse Programmer's Reference Guide is currently available (from MS Press) which includes additional mouse driver functions calls (35 in all) and examples for current Microsoft compilers (C 5.1, QuickBasic 4.5, MASM 5.1). With respect to Hercules graphics programming, the mouse driver supports this mode. The steps include: 1. putting the Herc in graphics mode, 2. poking 6 in 40:49h, 3. calling mouse function 0. [The above was also discussed in Info-IBMPC Digest V89 #49 by Jim Van Zandt] The following is an example using MS C 5.1, which will display the default graphics cursor and display coordinates 720x348 (upon a left button presses): /* hercmou: Show the mouse cursor in Herc graphics mode and print cursor coordinates. Compile/Link Steps: 1. cl /c hercmou.c; 2. link hercmou,,,mouse.lib slibcer.lib; Load Steps: 1. Run MSHERC.COM 2. Run hercmou.exe */ #include <stdio.h> #include <graph.h> #define LeftButton 1 #define RightButton 2 main() { int m1, m2, m3, m4; /* mouse parameters */ *((int far *)0x00400049L) = 6; /* poke 6 in 40:49h */ m1 = 0; /* reset mouse */ cmouses(&m1, &m2, &m3, &m4); _setvideomode(_HERCMONO); /* Set video mode */ m1 = 1; /* show mouse */ cmouses(&m1, &m2, &m3, &m4); do { m1 = 3; /* get mouse status */ cmouses(&m1, &m2, &m3, &m4); if (m2 == LeftButton) { _settextposition(1,1); /* print coordinates */ printf("xcoord = %d ycoord = %d ",m3,m4); } } while(m2 != RightButton); /* quit if right button*/ _setvideomode(_DEFAULTMODE); /* restore screen */ } /* end hercmou */ With respect to using the mouse driver in extended int10h modes because the driver does not support these modes, developers wishing to use them should devise their own cursor drawing routine (via setting the mouse drivers hardware subroutine (mouse function 20)) else as noted, non supported modes may result in unpredictable results. MS Hardware Support ------------------------------ Date: Tue, 02 May 89 13:13:11 -0400 From: "J.Chester" <jchester@note.nsf.gov> Subject: PK's ZIP program The Time Traveler <HE891C%GWUVM.BITNET@CORNELLC.cit.cornell.edu> asked in Issue #48 whether PKZIP would "unarc .ARC files". To my surprise, the answer seems to be "No". I tried recently to expand a file compressed with PKARC using PKZIP and couldn't do it. A quick search through the documentation for mention of ARC yielded nothing. I had to download a copy of PK361.EXE to replace the PKUNPAK I'd deleted on the blithe assumption that Katz' new program would be backwards compatible. ------------------------------ Date: Tue, 2 May 1989 12:36 MDT From: Keith Petersen <w8sdz@WSMR-SIMTEL20.ARMY.MIL> Subject: Quick reference list to Simtel20's MSDOS directories Quick reference list to SIMTEL20's PD1:<MSDOS.x> directories as of May 2, 1989 (where 'x' is one of the names below): ADA DESKACCESS KA9Q-TCPIP PCIP STARTER APL DESKPUB KERMIT PCMAG SURFMODL ARC-LBR DESQVIEW KEYBOARD PCMAIL SYSUTL ARCNET-PCIP DIRUTL LAN PCPURSUIT TELIX ASMUTL DISASM LAPTOP PCRESOURCE TELNET AT DSKUTL LISP PCTECH TEX AUTOCAD EDITOR LOTUS123 PIBTERM TROJAN-PRO AWK EDUCATION MAC PILOT TURBO-C BASIC EEL MAPPING PLOT TURBOBAS BATUTL EGA MATH PREPROCESS TURBOPAS BBS EMULATORS MAX PRINTER TXTUTL BBSLISTS FIDO MEMACS PROCOMM UUCP BIBLE FILEDOCS MENU PRODIGY VENTURA BORLAND FILUTL MICROCORN PROGJOURN VGA BYTEMAG FLOWCHART MODEM PROLOG VOICE C FORMGEN MODULA2 QBASIC WORLDMAP CAD FORTH MOUSE QMODEM X-10 CALCULATOR FORTRAN MSJOURNAL RBBS-PC XLISP CATALOG FOSSIL MSWINDOWS SCREEN XPC CIS FREEMACS MUSIC SMALL-C ZIP COMPATIBLES GENIE NCSATELNET SMALLTALK ZMODEM COMPUTE-PC GIF NETWORK SNOBOL4 ZOO CROSSASM GRAPH OPUS SPREADSHEET CROSSREF GRAPHICS PACKET SPRINT DATABASE HAMRADIO PASCAL SQ-USQ DDJMAG HYPERTEXT PC-JR STARLINK See PD1:<MSDOS.FILEDOCS>AAAREAD.ME for details on file directories and descriptions. --Keith Petersen Maintainer of Simtel20's CP/M, MSDOS, and MISC archives Internet: w8sdz@wsmr-simtel20.army.mil [26.2.0.74] Uucp: {ames,decwrl,harvard,rutgers,ucbvax,uunet}!wsmr-simtel20.army.mil!w8sdz ------------------------------ Date: 4 May 89 08:09:00 EST From: "NJITX::HXN8477" <hxn8477%njitx.decnet@njitc.njit.edu> Subject: Simtel20 ftp I have been able to ftp ascii files from simtel20. However, I have not been able to ftp any .arc file. The sequence I use is this: 1) After logging in, I type: type tenex 2) I change directory to pd1:<msdos.x> 2) I ftp an .arc file to my machine (vax 8530 running ultrix) 3) I move the .arc file with kermit from the vax to my pc 4) I try to de'arc' the file with PKXARC but I always get: Warning! file xxx fails CRC check. and if the .arc file contains text, the output file from PKXARC would have only a few readable lines then garbage to the end. If the file is a program, e.g. .exe file, I try to run it but the system crashes and I don't recover until I turn OFF and then ON again the pc. Can somebody tell me what is wrong here? Thanks in advance. "The only stupid question is the one that is never asked." ______________________________________________________________________________ |Hamed Nassar |Internet : hxn8477%njitx.decnet@njitc.njit.edu | |EE Department |UUCP : bellcore!argus!mars!nancy | |NJ Institute of Technology |CompuServe: 74000,130 | |Newark, NJ 07102 |Fidonet : 1:107/701 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------------ Date: Fri, 21 Apr 89 23:53:05 GMT From: SI-7AF <SI-7AF@SEOUL-EMH1.ARMY.MIL> Subject: VAX FTP Problems Hello all, Read with interest the comments about doing ftp's from a VAX machine to Simtel20. I have access to a VAX machine at Hickam AFB and have done quite a bit of transfer work with binary files. The folks at Hickam asked me for a description of how I did it so they could "educate" the other users there so I captured the sequence to a file and sent it to them. There does seem to be one "odd" thing about it, the file greater than 32KBytes error that was mentioned also nails me unless I "kick" the system with a keyboard input that generates an error reply. For some reason the quote "type l 8" doesn't work unless it is preceeded by nothing more than the word binary whick generates the error (see my sequence below). Haven't tried to experiment further but almost think that any change that would generate an error would get the two systems to talk properly. There is a note in the Simtel20 PD1:<MISC> directory about the VAX tenex not working properly and I found this to be the case on the Hickam-EMH. - - - - - - - - - Sample VAX FTP Connection Follows - - - - - - - - - - - $ ftp wsmr-simtel20.army.mil hickam-emh.arpa Wollongong FTP User Process (Version 3.2) Connection Opened Using 8-bit bytes. <WSMR-SIMTEL20.ARMY.MIL FTP Server Process 5Z(61)-7 at Wed 29-Mar-89 20:27-MST Name (wsmr-simtel20.army.mil:osanddn): anonymous <ANONYMOUS user ok, send real ident as password. Password (wsmr-simtel20.army.mil:anonymous): <User ANONYMOUS logged in at Wed 29-Mar-89 20:27-MST, job 24. *binary <Type I - WARNING: for 8-bit binary files, use TYPE L 8 or TENEX - ok. *quote "type l 8" <Type L bytesize 8 ok. *hash on On $ get pd1:<msdos>msdosidx.arc msdosidx.arc <Port 17.85 at host 26.16.0.100 accepted. <Retrieve of PD1:<MSDOS>MSDOSIDX.ARC.67 started. ############################################### 66216 bytes in 656 seconds--800 bps <Transfer completed. 66216 (8) bytes transferred. *quit exit $ @B O S @B I S kermit VMS Kermit-32 version 3.2.077 Default terminal for transfers is: _NTY4: Kermit-32>set file type binary Kermit-32>send msdosidx.arc;1 Kermit-32>exit $ - - - - - - - - - - - - - End Sample Connection - - - - - - - - - - Hope this does it for you... Hugh Preston si-7af@Seoul-EMH1.Army.Mil OSANDDN@Hickam-EMH.arpa ------------------------------ Date: Sun, 30 Apr 1989 02:01 MDT From: "Frank J. Wancho" <WANCHO@WSMR-SIMTEL20.ARMY.MIL> Subject: VAX FTP Problems > There does seem to be one "odd" thing about it, the file greater than >32KBytes error that was mentioned also nails me unless I "kick" the system >with a keyboard input that generates an error reply. For some reason the >quote "type l 8" doesn't work unless it is preceeded by nothing more than >the word binary which generates the error (see my sequence below). >Hugh, The reason you *must* give the binary command is because it preconditions your ftp program to create the receiving file as a binary, rather than ASCII or some other format file. The "error" message you get from the SIMTEL20 end is nothing more than a warning message - a reminder, if you will - that the command our FTP server just received is possibly inappropriate for the transfer about to occur. It won't prevent the transfer in that mode. But, because the binary command sent a TYPE I command to our end, which, to this machine, means the same as TYPE L 36, our server would not send you the bits you expected - you would get all 36 bits - nine 8-bit bytes out of each pair of 36-bit words: 8 8 8 8 8 8 8 8 8 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000 8 8 8 8 8 8 8 8 instead of just the first four 8-bit bytes out of each 36-bit word in the file. The BINTNXVMS program (source in <ANONYMOUS>BINTNXVMS.* here) may be used to post-process files transferred that way into the correct format. However, to eliminate that extra post-processing step and to correct what we would otherwise send you, you must send that quote "type l 8" command, and we send you the expected first four 8-bit bytes out of our 36-bit words. Some user ftp implementations have an equivalent command, named tenex, which is the same as the binary command in preconditioning the file creation mode. The important difference is that the tenex command correctly sends us the TYPE L 8 command instead of the TYPE I command. Unfortunately, there are some incorrect implementations of the tenex command which send TYPE L 32, and that won't produce the desired results either (and a similar warning message). Just send the quote "type l 8" command at that point and you should get the expected and correct results. Hope that explains the "kick." --Frank ------------------------------ Date: Tue, 2 May 89 14:27:57 EDT From: kaplan%fantasy@cs.umass.edu (Alan Kaplan) Subject: Fax Does anyone know about the availability of software and/or hardware that allows one to send to a fax or recieve from a fax using your PC? Thanks, Alan Kaplan Dept. Of Computer Science University of Massachusetts/Amherst Amherst, MA 01002 CSNET: kaplan@cs.umass.edu BITNET: akaplan@umass [Try looking in the April 11, '89 (V8 #11) issue of PC Magazine. They 'review' "15 FAX boards that really work" (Their words, not mine)... gph] ------------------------------ Date: Wed, 3 May 89 18:12:46 CDT From: "Michael J. Steiner" <U23405%UICVM.bitnet@cunyvm.cuny.edu> Subject: Program Standardization I was just thinking about how there is so much software out there (including both shareware and commercial software). It seems to me that there is a lot of duplication of effort, and maybe more standardization is necessary. (One of the main reasons why I prefer mainframes to PC's is that I don't have to spend years trying to find out which product is "best". :-)) Does anyone have any comments about this? Michael Steiner U23405@UICVM.BITNET or UICVM.UIC.EDU Disclaimer: I'm only an undergrad. ------------------------------ Date: Tue, 2 May 89 20:30:53 EST From: Franz-Werner Gergen <GERGEN%DS0MPI11.bitnet@cunyvm.cuny.edu> Subject: Passing Parameters to BAT files I am working on a PS2 Model 60 with IBM PC DOS 3.30. I want to pass a string like <key>=<value> to a bat-file but there arise a problem doing this: Typing <bat-file> <key>=<value>, the %1 parameter is <key> and the %2 parameter is <value> during execution of <bat-file>. But I need that the %1 parameter is <key>=<value>. Does anybody know how I can get this result? Thanks, Franz-Werner Gergen. /* EXAMPLE */ C>type dummy.bat echo off echo The first parameter is: %1 echo The second parameter is: %2 C>dummy option=value The first parameter is: option The second parameter is: value ------------------------------ Date: Tue, 2 May 89 11:50 CDT From: <JLS%TNTECH.BITNET@CUNYVM.CUNY.EDU> (Joel L. Seber ... CH227) Subject: Help with overhead projection systems Our local users group is interested in buying an overhead projection system capable of 16 color representation (true color if possible) and at least EGA capability. Please send any comments, reviews, etc. to the address below. I would really appreciate it. Joel L. Seber Microcomputer Specialist D.W. Mattson Computer Center Tennessee Technological University jls@tntech.bitnet ------------------------------ Date: Thu, 04 May 89 10:09:07 ITA From: Alessandro Russo <ALEX17%IPVIAN.BITNET@CUNYVM.CUNY.EDU> Subject: TSR for Periodic execution of a Function I have a problem with the machine code of ibm pc. I want to build a terminate-and-stay-resident program which uses the int 1c calls generated by the system clock (generally the only instruction for int 1c is iret) to do something periodically. I test the system clock and then, say every minute, I want to execute some code. The problem is this: while I'm executing my code, obviously the clock ticks continue to go, so int 1c is again generated, and the computer stops. I have tried to fix this by redefining int 1c to iret before running my code, and then reredefining it to my code before my code itself ends. This works fine, but....... only for a short time! All things work fine, my code runs regularly, other activities of the computer do the same, but after a short period, which is not always equal, the computer stops. I have tried with cli and sti, with no results. Is there anyone who knows what to do? I suspect that it's a stack problem (I use the stack in my code to save all registers), but I couldn't fix it. I can give you the code, if requested. best regards Alessandro Russo ------------------------------ Date: Mon, 1 May 89 09:43 EST From: "S Triantafyllopoulos" <SPIROS%RCSMST%gmr.com@RELAY.CS.NET> Subject: info needed on Zeos & Northgate 386 Clones Hello NetPeople! I am about to buy a 386 clone (16 or 20 mhz, NO SX :-)) from either Northgate or Zeos. Both machines have got pretty good reviews from the literature, and prices are similar (Zeos' cheaper actually). Do you have any experience with either company's products? Positive or negative, I'd appreciate any info you can send. Thank you in advance, Spiros (Spiros @ GMR.COM, spiros%gmr.com@relay.cs.net, strianta@killer.uucp, striantafyll%kosds1.gm@hac2arpa.hac.com, "Yo Spiros" (voice) ------------------------------ Date: Wed, 03 May 89 08:23:52 EDT From: "Roberto A. Banos Alvarez" <PP205138%TECMTYVM@icsa.rice.edu> Subject: Linking TurboC programs with MSC libraries Does anybody know how to link some MSC libraries (.LIB files) with a TurboC or TurboPascal program? I'd appreciate any help. Roberto A. Banos PP205138@TECMTYVM.Bitnet ------------------------------ Date: Tue, 2 May 89 18:31:10 CDT From: "Brian Frost AKA SnowMan" <BEFHELP@star.tamu.edu> Subject: LOGITECH Mouse Programmers manual In one of the latest issues of PC digest, there was made note of a programers guide for the LOGITECH Mouse. Could someone send me information on this manual. I just recently got the new LOGITECH Mouse for my system and would like to write some programs that will be able to use the mouse. I will probably be using it from Turbo Pascal V4.0. Thanks in advance. Brian Frost AVS User Consultant BEFHELP@VENUS.TAMU.EDU Internet BEFHELP@TAMVENUS BITNet ------------------------------ Date: 3 May 89 16:59 CDT From: Larry Eyberger <B27253%ANLNESC.BITNET@UICVM.uic.edu> Subject: Print screen with Postscript printers I have an APPLE Laserwriter IINT attached to an IBM PS/2 Model 70 computer. I would like to be able to dump the contents of the screen to the printer, but since the IINT accepts only postscript files, the Shift-Print Screen does not work. Does anyone know of a utility (or another way) that would accomplish this? Also, does anyone know how to do a "print screen" to a disk file? Thank you! [One way to do a PRT-SC to a disk file is to use a program similar to SNIPPV12, available as file pd1:<msdos.screen>SNIPPV12.ARC and TELEPORT, also available from PD1:<MSDOS.SCREEN>TELEPORT.ARC Another way, although I don't remember the issue number, is to use a program similar to the one published in PC Magazine last year that allows you to capture a screen to a file for documentation purposes. gph] ------------------------------ Date: Tue, 2 May 89 12:37:10 EST From: Christopher M Sedore <RSCMS@SUVM.ACS.SYR.EDU> Subject: TurboC and malloc I'd like to know if anyone has had a problem with TurboC 2.0 and malloc. I am writing a memory manager as a project, and discovered that malloc was actually giving me part of the used data seg as my heap. This proved to be a pain since my program, assuming the memory was free, overwrote the part of the data seg with my prompts and such in it. I did get away from the problem by switching from the SMALL model to the MEDIUM model, though. But I checked everything I could and it seemed to indicate that malloc took space that it shouldn't have. I'd be glad for any hints as to why it does this, or to know if this is a bug, that others have seen/experienced. Chris Sedore <RSCMS@SUVM> ------------------------------ Date: Wed, 03 May 89 14:11:11 BST From: THRA004%MVS.ULCC.AC.UK@CUNYVM.CUNY.EDU Subject: Ventura Publisher 1.1 and 8087 coprocessor Has anyone out there tested the effect, on the performance of Ventura 1.1 running on an XT clone, of installing an 8087 co-processor? I.e. does it speed up screen updating, make it worse, or make no difference? Looking forward to hearing from you. Christopher Currie THRA004%uk.ac.ulcc.mvs@nsfnet-relay.ac.uk (internet) THRA004%mvs.ulcc.ac.uk@nss.cs.ucl.ac.uk (soon to go away); THRA004%mvs.ulcc.ac.uk@cunyvm.cuny.edu (BITNET) ------------------------------ Date: Tue, 02 May 89 18:40 CET From: "N.Sommer" <VAL044%DD0RUD81.BITNET@CUNYVM.CUNY.EDU> Subject: Wendin There is a cheap multiuser/multitasking OS called WENDIN DOS. A test in a german computermagazine was positive. Any experiences with it on the net? Norbert Sommer Institut fzr Angewandte Physik Heinrich-Heine-Universitaet D-4000 Duesseldorf 1 (GFR) Bitnet: VAL044@DD0RUD81 ------------------------------ Date: TUE MAY 02, 1989 10.40.20 EST From: "Ronald J. Hartranft" <RJH2%LEHIGH.BITNET@IBM1.CC.Lehigh.Edu> Subject: Xebec 1420 Controller Documentation My son-in-law bought a Xebec Model 1420 SASI (SCSI?) Controller (floppy and hard disk) at a computer fair, but didn't get any documentation. If you have any information, or can make a copy of the documentation available, please let me know. I would, of course, pay the cost of copying and mailing. From : Ronald J. Hartranft Department of Mechanical Engineering and Mechanics Lehigh University Packard Lab #19 Bethlehem, Penn. 18015 (215)758-4109 ------------------------------ End of Info-IBMPC Digest ************************ -------