home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / forth / compiler / fpc / source / p4_14bs.seq < prev    next >
Text File  |  1990-04-14  |  267b  |  14 lines

  1. \ Balraj Sidhu   Set: 14D4
  2. \ Comp 462 - Forth
  3. \ Date: April 12, 1990
  4. \ Problem 4.14
  5.  
  6. create data 20 allot   \ create an array of 10 16-bit numbers
  7.  
  8. : data@ ( i -- n )
  9.         abs 10 mod 2* data + @ ;
  10.  
  11. : data! ( n i -- )
  12.         abs 10 mod 2* data + ! ;
  13.  
  14.