diff options
Diffstat (limited to 'lib/qso50/packtext2.f90')
| -rw-r--r--[-rwxr-xr-x] | lib/qso50/packtext2.f90 | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/qso50/packtext2.f90 b/lib/qso50/packtext2.f90 index d54b52fb..46fd577c 100755..100644 --- a/lib/qso50/packtext2.f90 +++ b/lib/qso50/packtext2.f90 @@ -1,22 +1,22 @@ -subroutine packtext2(msg,n1,ng)
-
- character*8 msg
- real*8 dn
- character*41 c
- data c/'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ +./?'/
-
- dn=0.
- do i=1,8
- do j=1,41
- if(msg(i:i).eq.c(j:j)) go to 10
- enddo
- j=37
-10 j=j-1 !Codes should start at zero
- dn=41.d0*dn + j
- enddo
-
- ng=mod(dn,32768.d0)
- n1=(dn-ng)/32768.d0
-
- return
-end subroutine packtext2
+subroutine packtext2(msg,n1,ng) + + character*8 msg + real*8 dn + character*41 c + data c/'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ +./?'/ + + dn=0. + do i=1,8 + do j=1,41 + if(msg(i:i).eq.c(j:j)) go to 10 + enddo + j=37 +10 j=j-1 !Codes should start at zero + dn=41.d0*dn + j + enddo + + ng=mod(dn,32768.d0) + n1=(dn-ng)/32768.d0 + + return +end subroutine packtext2 |
