Public paste
Undefined
By: Guest | Date: Nov 19 2010 13:00 | Format: None | Expires: never | Size: 658 B | Hits: 788

  1. A     #Y1
  2.       L     1
  3.       T     #Y_Current
  4.  
  5.       A     #Y2
  6.       L     2
  7.       T     #Y_Current
  8.  
  9.       A     #Y3
  10.       L     3
  11.       T     #Y_Current
  12.  
  13.       A     #Y4
  14.       L     4
  15.       T     #Y_Current
  16.  
  17. // If position is correct
  18.       L     #Y_Wanted
  19.       L     #Y_Current
  20.       ==I  
  21.       R     #Y_Up
  22.       R     #Y_Down
  23.       S     #Y_OK
  24.  
  25. // Too low, go up.
  26.       L     #Y_Wanted
  27.       L     #Y_Current
  28.       <I    
  29.       R     #Y_OK
  30.       R     #Y_Down
  31.       S     #Y_Up
  32.  
  33. // Too high, go down.
  34.       L     #Y_Wanted
  35.       L     #Y_Current
  36.       >I    
  37.       R     #Y_OK
  38.       R     #Y_Up
  39.       S     #Y_Down