home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / sys / pdp8 / 94 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.3 KB  |  59 lines

  1. Newsgroups: alt.sys.pdp8
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!rpi!news.columbia.edu!watsun.cc.columbia.edu!lasner
  3. From: lasner@watsun.cc.columbia.edu (Charles Lasner)
  4. Subject: Re: The good old days.
  5. Message-ID: <1992Nov20.042652.18263@news.columbia.edu>
  6. Sender: usenet@news.columbia.edu (The Network News)
  7. Nntp-Posting-Host: watsun.cc.columbia.edu
  8. Reply-To: lasner@watsun.cc.columbia.edu (Charles Lasner)
  9. Organization: Columbia University
  10. References: <1992Nov18.235407.12864@reed.edu> <1992Nov19.102634.20745@vpnet.chi.il.us>
  11. Date: Fri, 20 Nov 1992 04:26:52 GMT
  12. Lines: 45
  13.  
  14. In article <1992Nov19.102634.20745@vpnet.chi.il.us> cgordon@vpnet.chi.il.us (gordon hlavenka) writes:
  15.  
  16. >
  17. >A puzzle?  We ran this little ditty on almost a daily basis.
  18. >0000 ADDR LD
  19. >DCA I 0010
  20. >JMP 0000
  21. >0000 ADDR LD CLEAR CONT
  22. >
  23. >2 instructions.  Actually, we'd run it with the data field set to 1,
  24. >then 2, and finally zero.  The program autoincrements itself right
  25. >through the field, finally (in DF0) overwriting the DCA with a zero.
  26. >(AND 0000)  Then the loop was a lot tighter -- you could see the
  27. >difference in the panel lights.  You do have to make sure that
  28. >location 10 has a 10 in it when you start, though...
  29.  
  30. When the DF is 10-70, it doesn't much matter what's in 00010, since you just
  31. let it run more than enough times to clobber everything many times over.
  32.  
  33. With the DF 00, when the DCA I 10 is destroyed, the JMP isn't destroyed.
  34. However, since the switches are zero from the last load address function, the
  35. switches are thus conveniently set to 0000.  Hitting deposit will put a 0000
  36. into the latest location, which since the running program is now:
  37.  
  38.     *0000
  39.  
  40.     AND    0
  41.     JMP    0
  42.  
  43. means that the PC is either 00000 or 00001, so worst case you can either
  44. deposit a 0000 over 00000 and 00001 if you hit deposit twice, or a 0000 over
  45. 00001 and 00002 if you hit deposit twice.  This can be done without looking at
  46. the lights if you're in a hurry.  An alternative is to do ADDR LOAD then
  47. DEP DEP but that might take most people a few extra milliseconds.
  48.  
  49. Here's one for the fans of the (nearly) cleared-out memory PDP-8:
  50.  
  51. Assume that all of field 0 is all 0000 as the above might accomplish.  ADDR
  52. LOAD 0000, change the switches to 1777, press DEP, CONT.  Describe what the
  53. AC lights are doing, and why.
  54.  
  55. (On a difficulty scale of 1-10, this problem is rated 2.)
  56.  
  57. cjl
  58.  
  59.