LIB$CHAR        ; Return INTEGER*1 as one byte string            21-AUG-1978 18:57:06   VAX-11 MACRO X0.3-11               Page   0

TABLE OF CONTENTS   



   (2)      89  HISTORY		; Detailed Current Edit History

   (3)      96  DECLARATIONS

   (4)     123  LIB$CHAR - Return INTEGER*1 as a one byte strin

LIB$CHAR        ; Return INTEGER*1 as one byte string            21-AUG-1978 18:57:06   VAX-11 MACRO X0.3-11               Page   1

0-3                                                                                                                              (1)



                                     0000     1 	.TITLE	LIB$CHAR		; Return INTEGER*1 as one byte string

                                     0000     2 	.IDENT	/0-3/			; File: LIBCHAR.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 INTEGER*1 as a one byte string.

                                     0000    29 ;--

                                     0000    30 ;

                                     0000    31 ; VERSION: 0

                                     0000    32 ;

                                     0000    33 ; HISTORY:

                                     0000    34 ;

                                     0000    35 ; AUTHOR:

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

                                     0000    37 ;

                                     0000    38 ; MODIFIED BY:

                                     0000    39 ;

                                     0000    40 ;

                                     0000    41 ;

LIB$CHAR        ; Return INTEGER*1 as one byte string            21-AUG-1978 18:57:06   VAX-11 MACRO X0.3-11               Page   2

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



                                     0000    43 	.SBTTL	HISTORY		; Detailed Current Edit History

                                     0000    44 

                                     0000    45 

                                     0000    46 ; Edit History for Version 0

                                     0000    47 ;

                                     0000    48 

LIB$CHAR        ; Return INTEGER*1 as one byte string            21-AUG-1978 18:57:06   VAX-11 MACRO X0.3-11               Page   3

0-3             DECLARATIONS                                                                                                     (3)



                                     0000    50 	.SBTTL	DECLARATIONS

                                     0000    51 

                                     0000    52 ;

                                     0000    53 ; INCLUDE FILES:

                                     0000    54 ;

                                     0000    55 

                                     0000    56 ;

                                     0000    57 ; EXTERNAL SYMBOLS:

                                     0000    58 ;

                                     0000    59 

                                     0000    60 ;

                                     0000    61 ; MACROS:

                                     0000    62 ;

                                     0000    63 

                                     0000    64 ;

                                     0000    65 ; PSECT DECLARATIONS:

                                     0000    66 ;

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

                                     0000    68 ;

                                     0000    69 ; EQUATED SYMBOLS:

                                     0000    70 ;

                                     0000    71 

                                     0000    72 ;

                                     0000    73 ; OWN STORAGE:

                                     0000    74 ;

                                     0000    75 

LIB$CHAR        ; Return INTEGER*1 as one byte string            21-AUG-1978 18:57:06   VAX-11 MACRO X0.3-11               Page   4

0-3             LIB$CHAR - Return INTEGER*1 as a one byte strin                                                                  (4)



                                     0000    77 	.SBTTL	LIB$CHAR - Return INTEGER*1 as a one byte string

                                     0000    78 

                                     0000    79 ;++

                                     0000    80 ; FUNCTIONAL DESCRIPTION:

                                     0000    81 ;

                                     0000    82 ;	Return unsigned INTEGER*1 as a one byte 8-bit ASCII string with

                                     0000    83 ;	trailing spaces.  Range of input byte is 0 through 255.

                                     0000    84 ;	Since output string is first argument, this can be called as either

                                     0000    85 ;	a subroutine of two arguments, or a string function of one argument.

                                     0000    86 ;

                                     0000    87 ; CALLING SEQUENCE:

                                     0000    88 ;

                                     0000    89 ;	CALL LIB$CHAR (one_char_str.wt.dx, byte_integer.rbu.r)

                                     0000    90 

                           00000004  0000    91 	one_char_str = 4		; Adr. of string descriptor

                                     0000    92 					; to receive one character result.

                                     0000    93 					; If descriptor is longer than 1 char., add traililng blanks.

                           00000008  0000    94 	byte_integer = 8		; Adr. of unsigned byte integer

                                     0000    95 					; to be converted to ASCII string.

                                     0000    96 

                                     0000    97 ;

                                     0000    98 ; INPUT PARAMETERS:

                                     0000    99 ;	NONE

                                     0000   100 ;

                                     0000   101 ; IMPLICIT INPUTS:

                                     0000   102 ;	NONE

                                     0000   103 ;

                                     0000   104 ; OUTPUT PARAMETERS:

                                     0000   105 ;	NONE

                                     0000   106 ;

                                     0000   107 ; IMPLICIT OUTPUTS:

                                     0000   108 ;	NONE

                                     0000   109 ;

                                     0000   110 ; COMPLETION CODES:

                                     0000   111 ;	NONE

                                     0000   112 ;

                                     0000   113 ; SIDE EFFECTS:

                                     0000   114 ;	NONE

                                     0000   115 ;

                                     0000   116 ;--

                                     0000   117 

                                     0000   118 

                                     0000   119 

                               003C' 0000   120 	.ENTRY	LIB$CHAR, ^M<R2,R3,R4,R5> ; entry point and entry mask

                                     0002   121 

            50         04 BC     7D  0002   122 	MOVQ	@one_char_str(AP), R0	; R0/R1 = len/adr. of result string

                          01     2C  0006   123 	MOVC5	#1, @byte_integer(AP),-	; move one-char string

            20         08 BC         0008   124 		#^A/ /, R0, (R1)	; pad with trailing blanks

            61            50         000B       

                                 04  000D   125 	RET				; return from LIB$CHAR routine

                                     000E   126 

                                     000E   127 	.END				; End of module LIB$ICHAR

LIB$CHAR        ; Return INTEGER*1 as one byte string            21-AUG-1978 18:57:06   VAX-11 MACRO X0.3-11               Page   5

SYMBOL TABLE                                                                                                                     (4)



BYTE_INTEGER   = 00000008            

FOR$K_ERR_PREFX= 00000018            

LIB$CHAR         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            

ONE_CHAR_STR   = 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         0000000E      02       PIC   USR   CON   REL   LCL   SHR   EXE   RD  NOWRT LONG  





THERE WERE NO ERRORS OR WARNINGS.

28022. BYTES LEFT IN FREE MEMORY POOL.

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

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

