home *** CD-ROM | disk | FTP | other *** search
- ; #### # # # #
- ; # # # # # The FreeWare C library for
- ; # # ## ### # # # # ### RISC OS machines
- ; # # # # # # # # # # # ___________________________________
- ; # # #### ### ## # # # #
- ; # # # # # # # # # # Please refer to the accompanying
- ; #### ### #### # # ##### # ### documentation for conditions of use
- ; ________________________________________________________________________
- ;
- ; File: Str.strcatcr.s
- ; Author: Copyright © 1993 Ainsley Pereira
- ; Version: 1.01 (05 Mar 1994)
- ; Purpose: Concatenate two CR/NUL terminated strings - note that this will
- ; change the terminator of the result to a NUL (0).
-
-
- GET h.regdefs
- GET h.swinos
- GET h.macros
-
- PREAMBLE
- STARTCODE strcatcr
-
- STMFD sp!,{v1,v2,lr}
- MOV v1,#0
- MOV v2,#0
- strcatcr_00
- LDRB ip,[a1,v1]
- CMP ip,#31
- ADDGT v1,v1,#1
- BGT strcatcr_00
- strcatcr_01
- LDRB ip,[a2,v2]
- CMP ip,#31
- STRGT ip,[a1,v1]
- ADDGT v1,v1,#1
- ADDGT v2,v2,#1
- BGT strcatcr_01
- MOV ip,#0
- STRB ip,[a1,v1]
- LDMFD sp!, {v1,v2, pc}^
- ;
- END
-