home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8891 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.5 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!sdd.hp.com!swrinde!ringer!mlevis
  2. From: mlevis@ringer.cs.utsa.edu (Mike Levis)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Novice question: how to boot from a bat file?
  5. Message-ID: <1992Aug30.231643.24155@ringer.cs.utsa.edu>
  6. Date: 30 Aug 92 23:16:43 GMT
  7. References: <1992Aug30.033912.729@u.washington.edu> <adgn1#p.messina@netcom.com> <1992Aug30.205151.18716@uwasa.fi>
  8. Organization: University of Texas at San Antonio
  9. Lines: 28
  10.  
  11. In article <1992Aug30.205151.18716@uwasa.fi> ts@uwasa.fi (Timo Salmi) writes:
  12. >In article <adgn1#p.messina@netcom.com> messina@netcom.com (Tony Porczyk) writes:
  13. >>begin 666 reset.com
  14. >>1ND``CMJ[<@#'!S02Z@``__\`
  15. >>It's not too long :-), after uudecoding it should be 17 bytes long.
  16. >
  17. >Yes I know it is certainly not too long, but whether just a few
  18. >characters or hundreds of lines, please do not use this practice. 
  19. >Here is the why:
  20. [...]
  21. >Prof. Timo Salmi
  22.  
  23. I don't think that the uue prog was inappropriate.  It is much
  24. shorter than the source code I see posted (which I don't mind
  25. at all, BTW).
  26.  
  27. P.S.  I optimised the reset.com and here is the source code:
  28.     sub    ax, ax
  29.     mov    ds, ax
  30.     mov    word ptr [0472h], 1234h   ; mov word ptr ds:[472h],1234h
  31.     db    0EAh, 00, 00, 0FFh, 0FFh  ; jmp FFFF:0000
  32. This one is only 15 bytes long.
  33.  
  34. -- 
  35. ==== Mike Levis   mlevis@ringer.cs.utsa.edu ====
  36. ::   ftp syrinx.umd.edu  (128.8.2.114)  for   ::  .--.
  37. ::   Rush lyrics,  gifs,  and  information.   :: (OS/2)
  38. :::: Get the Rush FAQL in dir /rush/special ::::  ~--~
  39.