[net.math] zeroing memory

colonel@sunybcs.UUCP (George Sicherman) (10/13/83)

Zero the Cyber?  That's a good one!  Does anybody have an old Wang desk
calc--the kind with nixies?  Well, try writing a program that zeroes
its memory.  The best solution I know does zero the entire memory, but
leaves the computer in an error state.  (This may be unavoidable.)
			George Sicherman
			...seismo!rochester!rocksvax!sunybcs!colonel

boi@uicsl.UUCP (10/18/83)

#R:sunybcs:-53200:uicsl:6900003:000:977
uicsl!boi    Oct 17 19:33:00 1983

  It is in fact possible to zero your entire field length on the
Cyber without producing an error. However, as you can not execute
any instructions in memory after you have done so, you must
finish by issuing and END request. Here's how to do it:

     <  execute some code to zero memory from zro+2 to FL >

   req     vfd       24/4lendp,36/0
           .     
           .  

           sb1       1
           bx6       x6-x6
           sa1       req
           sb7       zro+1
           sb4       b7+b1
           sb6       2
           bx7       x1
 zro       bss       0
           sa6       b6
           sb6       b6+b1
           lt        b6,b7,zro
           sa6       b6
           sb0       b0
           sa6       b4
           sa7       b1
           xj
           .
        < at least one more word in FL >


  The thing to take care of is the RNI (read next instruction)
 which takes place after the first 30 bits of an instruction word
 have been processed.