Section 10: Programming with ALPHA Strings155
Here is an example of how ASHF can be used. The program stores a string of characters into several registers and then recalls the stored strings one at a time into the display. Begin by assigning ASHF to the TAN key for use in USER mode.
Keystrokes Display    
g ASN 
  ASN _    
   
ALPHA ASHF ALPHA 
  ASN ASHF _    
   
TAN 
  ASN ASHF 25    
   
 
  0.0000    
   
USER 
  0.0000    
   
Now load the program.
Keystrokes Display    
PRGM 
       
   
g GTO · · 
  00 REG 32    
   
g LBL 
       
   
ALPHA SHIFTY ALPHA 
  01 LBLTSHIFTY    
  The new program name.
ALPHA SUNDAYMONDAY 
  UNDAYMONDAY _    
  The prompt for input.
g ASTO 01
  03 ASTO 01    
  The first six characters are stored into R01.
ALPHA 
       
   
ASHF ( TAN )
  04 ASHF    
  Six characters are shifted off to the left.
ALPHA 
       
   
g ASTO 02
  05 ASTO 02    
  The second six characters are stored into R02.
g CLA 
  06 CLA     
  ALPHA register is cleared.
g ARCL 01
  07 ARCL 01    
  Recall the six characters stored into R01.
g AVIEW 
  08 AVIEW     
  Display the string.
ALPHA 
       
   
XEQ 
       
   
ALPHA PSE ALPHA 
  09 PSE    
  Pause.
ALPHA g CLA 
  10 CLA     
  ALPHA register is cleared.
g ARCL 02
  11 ARCL 02    
  Recall the six characters stored into R02.
g AVIEW 
  12 AVIEW     
  Display the string.
ALPHA 
       
   
g GTO · · 
  00 REG 26    
  The end of the program.