                                 ͻ
                                  XLIB? 
                                 ͼ

Language: System RPL
Author: Jorge Costa <l38861@alfa.ist.utl.pt>
Date: January 4, 1996
Description: Tests if a XLIB ( ROMPTR ) name exists in the command set.
Input: Two real numbers - the XLIB identifiers.
Output: One real number - 1 or 0.
Note: To compile this source code, use xlb.s and xlb.m with HP tools.
Source Code:
-----------------( CUT HERE )----------------------------------------------
ASSEMBLE
        NIBASC /HPHP48-P/
RPL
::                      ( Begin RPL )
 0LASTOWDOB!            ( No commands in error messages )
 CK2NOLASTWD            ( Check two objects )
 CK&DISPATCH1           ( Argument type checking, second pass strips tag's )
 2REAL                  ( Check for two real numbers )
 ::                     ( Begin RPL )
  COERCE2               ( Convert two real's into bints )
  #>ROMPTR              ( Build ROMPTR )
  ROMPTR@               ( Recall ROMPTR's body )
  ITE                   ( IF/THEN/ELSE )
  ::                    ( Begin RPL )
   DROP                 ( Same as userRPL DROP )
   %1                   ( Real number one )
   ;                    ( End RPL )
   %0                   ( Real number zero )
 ;                      ( End RPL )
;                       ( End RPL )


                                                                      
