diff options
Diffstat (limited to 'lib/qso50/packtext2.f90')
| -rw-r--r-- | lib/qso50/packtext2.f90 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/qso50/packtext2.f90 b/lib/qso50/packtext2.f90 new file mode 100644 index 00000000..d54b52fb --- /dev/null +++ b/lib/qso50/packtext2.f90 @@ -0,0 +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
|
