LIB$ICHAR       ; Return first char of str as value              21-AUG-1978 18:58:12   VAX-11 MACRO X0.3-11               Page   0

TABLE OF CONTENTS   



   (2)      90  HISTORY		; Detailed Current Edit History

   (3)      97  DECLARATIONS

   (4)     124  LIB$ICHAR - Return first char of string as INTE

LIB$ICHAR       ; Return first char of str as value              21-AUG-1978 18:58:12   VAX-11 MACRO X0.3-11               Page   1

0-3                                                                                                                              (1)



                                     0000     1 	.TITLE	LIB$ICHAR		; Return first char of str as value

                                     0000     2 	.IDENT	/0-3/			; File: LIBICHAR.MAR

                                     0000     3 

                                     0000     4 ;

                                     0000     5 ; Copyright (C) 1977

                                     0000     6 ; Digital Equipment Corporation, Maynard, Massachusetts 01754

                                     0000     7 ;

                                     0000     8 ; This software is furnished under a license for use only on a single

                                     0000     9 ; computer  system  and  may be copied only with the inclusion of the

                                     0000    10 ; above copyright notice. This software, or any other copies thereof,

                                     0000    11 ; may not be provided or otherwise made available to any other person

                                     0000    12 ; except for use on such system and to one who agree to these license 

                                     0000    13 ; terms.  Title to  and  ownership of the software shall at all times 

                                     0000    14 ; remain in DEC.

                                     0000    15 ;

                                     0000    16 ; The information in the software is subject to change without notice

                                     0000    17 ; and should  not  be construed  as a commitment by Digital Equipment 

                                     0000    18 ; Corporation.

                                     0000    19 ;

                                     0000    20 ; DEC assumes  no  responsibility  for the use or  reliability of its

                                     0000    21 ; software on equipment which is not supplied by DEC.

                                     0000    22 ;

                                     0000    23 ;

                                     0000    24 ; FACILITY: General Utility Library

                                     0000    25 ;++

                                     0000    26 ; ABSTRACT:

                                     0000    27 ;

                                     0000    28 ;	Return first character of a string as INTEGER*4 ASCII value.

                                     0000    29 ;

                                     0000    30 ;--

                                     0000    31 ;

                                     0000    32 ; VERSION: 0

                                     0000    33 ;

                                     0000    34 ; HISTORY:

                                     0000    35 ;

                                     0000    36 ; AUTHOR:

                                     0000    37 ;	Thomas N. Hastings, 6-Aug-77: Version 0

                                     0000    38 ;

                                     0000    39 ; MODIFIED BY:

                                     0000    40 ;

                                     0000    41 ;

                                     0000    42 ;

LIB$ICHAR       ; Return first char of str as value              21-AUG-1978 18:58:12   VAX-11 MACRO X0.3-11               Page   2

0-3             HISTORY  ; Detailed Current Edit History                                                                         (2)



                                     0000    44 	.SBTTL	HISTORY		; Detailed Current Edit History

                                     0000    45 

                                     0000    46 

                                     0000    47 ; Edit History for Version 0

                                     0000    48 ;

                                     0000    49 

LIB$ICHAR       ; Return first char of str as value              21-AUG-1978 18:58:12   VAX-11 MACRO X0.3-11               Page   3

0-3             DECLARATIONS                                                                                                     (3)



                                     0000    51 	.SBTTL	DECLARATIONS

                                     0000    52 

                                     0000    53 ;

                                     0000    54 ; INCLUDE FILES:

                                     0000    55 ;

                                     0000    56 

                                     0000    57 ;

                                     0000    58 ; EXTERNAL SYMBOLS:

                                     0000    59 ;

                                     0000    60 

                                     0000    61 ;

                                     0000    62 ; MACROS:

                                     0000    63 ;

                                     0000    64 

                                     0000    65 ;

                                     0000    66 ; PSECT DECLARATIONS:

                                     0000    67 ;

                                 00000000    68 	.PSECT	LIB$CODE PIC,SHR,LONG,EXE,NOWRT

                                     0000    69 ;

                                     0000    70 ; EQUATED SYMBOLS:

                                     0000    71 ;

                                     0000    72 

                                     0000    73 ;

                                     0000    74 ; OWN STORAGE:

                                     0000    75 ;

                                     0000    76 

LIB$ICHAR       ; Return first char of str as value              21-AUG-1978 18:58:12   VAX-11 MACRO X0.3-11               Page   4

0-3             LIB$ICHAR - Return first char of string as INTE                                                                  (4)



                                     0000    78 	.SBTTL	LIB$ICHAR - Return first char of string as INTEGER*4 value

                                     0000    79 

                                     0000    80 ;++

                                     0000    81 ; FUNCTIONAL DESCRIPTION:

                                     0000    82 ;

                                     0000    83 ;	Return first character of string as INTEGER*4 8-bit ASCII value.

                                     0000    84 ;

                                     0000    85 ; CALLING SEQUENCE:

                                     0000    86 ;

                                     0000    87 ;	First_char_val.wlu.v = LIB$ICHAR (string.rt.dx)

                                     0000    88 

                           00000004  0000    89 	string = 4			; Adr. of string descriptor

                                     0000    90 

                                     0000    91 ;

                                     0000    92 ; INPUT PARAMETERS:

                                     0000    93 ;	NONE

                                     0000    94 ;

                                     0000    95 ; IMPLICIT INPUTS:

                                     0000    96 ;	NONE

                                     0000    97 ;

                                     0000    98 ; OUTPUT PARAMETERS:

                                     0000    99 ;	NONE

                                     0000   100 ;

                                     0000   101 ; IMPLICIT OUTPUTS:

                                     0000   102 ;	NONE

                                     0000   103 ;

                                     0000   104 ; COMPLETION CODES:

                                     0000   105 ;	NONE

                                     0000   106 ;

                                     0000   107 ; SIDE EFFECTS:

                                     0000   108 ;	NONE

                                     0000   109 ;

                                     0000   110 ;--

                                     0000   111 

                                     0000   112 

                                     0000   113 

                               0000' 0000   114 	.ENTRY	LIB$ICHAR, ^M<>		; entry mask

                                     0002   115 

            50         04 BC     7D  0002   116 	MOVQ	@string(AP), R0		; R0/R1 = length/address of string

            50            61     9A  0006   117 	MOVZBL	(R1), R0		; R0 = value of first character

                                 04  0009   118 	RET				; return from LIB$ICHAR

                                     000A   119 

                                     000A   120 	.END				; End of module LIB$ICHAR

LIB$ICHAR       ; Return first char of str as value              21-AUG-1978 18:58:12   VAX-11 MACRO X0.3-11               Page   5

SYMBOL TABLE                                                                                                                     (4)



FOR$K_ERR_PREFX= 00000018            

LIB$ICHAR        00000000 RG    02   

MTH$K_ERR_PREFX= 00000016            

MTH__FLOOVEMAT = 00000058            

MTH__FLOUNDMAT = 00000059            

MTH__INVARG    = 00000051            

MTH__LOGZERNEG = 00000053            

MTH__SINSIGLOS = 00000057            

MTH__SQUROONEG = 00000054            

MTH__UNDEXP    = 00000052            

MTH__WRONUMARG = 00000050            

STRING         = 00000004            





PROGRAM SECTION SYNOPSIS



.  ABS  .        00000000      00     NOPIC   USR   CON   ABS   LCL NOSHR NOEXE NORD  NOWRT BYTE  

. BLANK .        00000000      01     NOPIC   USR   CON   REL   LCL NOSHR   EXE   RD    WRT BYTE  

LIB$CODE         0000000A      02       PIC   USR   CON   REL   LCL   SHR   EXE   RD  NOWRT LONG  





THERE WERE NO ERRORS OR WARNINGS.

28046. BYTES LEFT IN FREE MEMORY POOL.

OBJ$:LIBICHAR,LIS$:LIBICHAR/-SP=LIB$:S/ML,SRC$:P,LIBICHAR

0 MLB DIR RDS - 0 GETS TO DEFINE 0 MACROS. 1 INTER. FILE WRITES. 

