LIB$MOVTC       - move translated characters                     21-AUG-1978 18:58:56   VAX-11 MACRO X0.3-11               Page   0

TABLE OF CONTENTS   



   (2)      89  DECLARATIONS

   (3)     112  LIB$MOVTC  - translate and move characters 

LIB$MOVTC       - move translated characters                     21-AUG-1978 18:58:56   VAX-11 MACRO X0.3-11               Page   1

00-02                                                                                                                            (1)



                                     0000     1 	.TITLE	LIB$MOVTC - move translated characters 

                                     0000     2 	.IDENT	/00-02/			; File: LIBMOVTC.MAR

                                     0000     3 

                                     0000     4 ;

                                     0000     5 ;			  COPYRIGHT (c) 1977 BY

                                     0000     6 ;	      DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.

                                     0000     7 ;

                                     0000     8 ; THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED

                                     0000     9 ; ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH  LICENSE AND WITH THE

                                     0000    10 ; INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR  ANY  OTHER

                                     0000    11 ; COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY

                                     0000    12 ; OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY

                                     0000    13 ; TRANSFERRED.

                                     0000    14 ;

                                     0000    15 ; THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE  WITHOUT  NOTICE

                                     0000    16 ; AND  SHOULD  NOT  BE  CONSTRUED  AS  A COMMITMENT BY DIGITAL EQUIPMENT

                                     0000    17 ; CORPORATION.

                                     0000    18 ;

                                     0000    19 ; DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR  RELIABILITY  OF  ITS

                                     0000    20 ; SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.

                                     0000    21 ;

                                     0000    22 

                                     0000    23 ;++

                                     0000    24 ; FACILITY: General Utility Library

                                     0000    25 ;

                                     0000    26 ; ABSTRACT:

                                     0000    27 ;

                                     0000    28 ;	Move translated characters from the source to the destination.  The fill

                                     0000    29 ;	character is employed if the destination is longer than the source.

                                     0000    30 ;

                                     0000    31 ; ENVIRONMENT: User Mode, AST Reentrant

                                     0000    32 ;

                                     0000    33 ;

                                     0000    34 ; AUTHOR: Donald G. Petersen, CREATION DATE: 30-Dec-77

                                     0000    35 ;

                                     0000    36 ; MODIFIED BY:

                                     0000    37 ;

                                     0000    38 ;	DGP, 30-Dec-77 : Version 00 

                                     0000    39 ; 01	- Original

                                     0000    40 ; 02	- bug fix.  Add @ to fill character pointer.  DGP 9-May-78

                                     0000    41 ;--

LIB$MOVTC       - move translated characters                     21-AUG-1978 18:58:56   VAX-11 MACRO X0.3-11               Page   2

00-02           DECLARATIONS                                                                                                     (2)



                                     0000    43 	.SBTTL	DECLARATIONS

                                     0000    44 ;

                                     0000    45 ; INCLUDE FILES:

                                     0000    46 ;

                                     0000    47 

                                     0000    48 ;

                                     0000    49 ; MACROS:

                                     0000    50 ;

                                     0000    51 

                                     0000    52 ;

                                     0000    53 ; EQUATED SYMBOLS:

                                     0000    54 ;

                                     0000    55 

                                     0000    56 ;

                                     0000    57 ; OWN STORAGE:

                                     0000    58 ;

                                     0000    59 

                                     0000    60 ;

                                     0000    61 ; PSECT DECLARATIONS:

                                     0000    62 ;

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

                                     0000    64 

LIB$MOVTC       - move translated characters                     21-AUG-1978 18:58:56   VAX-11 MACRO X0.3-11               Page   3

00-02           LIB$MOVTC  - translate and move characters                                                                       (3)



                                     0000    66 	.SBTTL	LIB$MOVTC  - translate and move characters 

                                     0000    67 ;++

                                     0000    68 ; FUNCTIONAL DESCRIPTION:

                                     0000    69 ;

                                     0000    70 ;	Each character in the source is used as an index into the table.  The byte entry

                                     0000    71 ;	found is then placed into the destination as a translation.  The fill character

                                     0000    72 ;	is used if the destination string is longer than the source string.  If the

                                     0000    73 ;	source is longer than the destination, then truncation results.  Overlap of

                                     0000    74 ;	the source and destination strings does not affect execution.

                                     0000    75 ;

                                     0000    76 ; CALLING SEQUENCE:

                                     0000    77 ;

                                     0000    78 ;	CALL	LIB$MOVTC (src.rt.dx, fill.rt.dx, table.rt.dx, dst.wt.dx)

                                     0000    79 ;

                                     0000    80 

                           00000004  0000    81 	SOURCE = 4				; Adr. of desc. of source string

                           00000008  0000    82 	FILL = 8				; Adr. of desc. of fill character

                           0000000C  0000    83 	TABLE = 12				; Adr. of desc. of translation table

                           00000010  0000    84 	DEST = 16				; Adr. of desc. of destination string

                                     0000    85 

                                     0000    86 ; INPUT PARAMETERS:

                                     0000    87 ;

                                     0000    88 ;	NONE

                                     0000    89 ;

                                     0000    90 ; IMPLICIT INPUTS:

                                     0000    91 ;

                                     0000    92 ;	NONE

                                     0000    93 ;

                                     0000    94 ; OUTPUT PARAMETERS:

                                     0000    95 ;

                                     0000    96 ;	NONE

                                     0000    97 ;

                                     0000    98 ; IMPLICIT OUTPUTS:

                                     0000    99 ;

                                     0000   100 ;	NONE

                                     0000   101 ;

                                     0000   102 ; COMPLETION CODES:

                                     0000   103 ;

                                     0000   104 ;	NONE

                                     0000   105 ;

                                     0000   106 ; SIDE EFFECTS:

                                     0000   107 ;

                                     0000   108 ;	NONE

                                     0000   109 ;

                                     0000   110 ;--

                                     0000   111 

                               003C' 0000   112 	.ENTRY LIB$MOVTC , ^M<R2, R3, R4, R5>	; Entry point

                                     0002   113 

            54         0C AC     D0  0002   114 	MOVL	TABLE(AP), R4			; R4 points to table desc.

            55         08 AC     D0  0006   115 	MOVL	FILL(AP), R5			; R5 points to fill desc.

            50         04 BC     7D  000A   116 	MOVQ	@SOURCE(AP), R0			; R0/R1 source string len and adr

            52         10 BC     7D  000E   117 	MOVQ	@DEST(AP), R2			; R2/R3 dest string len and adr

            61            50     2E  0012   118 	MOVTC	R0, (R1), @4(R5), @4(R4), -	; move translated characters

         04 B4         04 B5         0015       

                                     0019       

            63            52         0019   119 		R2, (R3)

                                 04  001B   120 	RET

LIB$MOVTC       - move translated characters                     21-AUG-1978 18:58:56   VAX-11 MACRO X0.3-11               Page   4

00-02           LIB$MOVTC  - translate and move characters                                                                       (3)



                                     001C   121 	.END

LIB$MOVTC       - move translated characters                     21-AUG-1978 18:58:56   VAX-11 MACRO X0.3-11               Page   5

SYMBOL TABLE                                                                                                                     (3)



DEST           = 00000010            

FILL           = 00000008            

FOR$K_ERR_PREFX= 00000018            

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

SOURCE         = 00000004            

TABLE          = 0000000C            





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         0000001C      02       PIC   USR   CON   REL   LCL   SHR   EXE   RD  NOWRT LONG  





THERE WERE NO ERRORS OR WARNINGS.

28000. BYTES LEFT IN FREE MEMORY POOL.

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

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

