title Module from library HILIB_2 : STRAPX name ('STRAPX') maclib baselib.lib ; Language : PASCAL ; Append string ; Copyright (C) Werner Cirsovius ; Hohe Weide 44 ; D-20253 Hamburg ; Tel.: +49-40-4223247 ; Version 1.0, October 1993 ; ENTRY Reg pair HL points to source closed by zero ; Reg pair DE points to destination closed by zero ; Rg B holds max length of combined string - less zero ; EXIT Destination appended by source entry strapx ext @leng,@endst,strasx strapx: ld c,b ; Save length ex de,hl call @leng ; Get length of destination ex de,hl call @endst ; Position to end ld a,c sub b ; Get combined length ret c ; .. too long ret z ld b,a jp strasx ; .. then assign end