summaryrefslogtreecommitdiff
path: root/lib/packjt.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /lib/packjt.f90
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'lib/packjt.f90')
-rw-r--r--lib/packjt.f9024
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/packjt.f90 b/lib/packjt.f90
index ad05b573..5557214f 100644
--- a/lib/packjt.f90
+++ b/lib/packjt.f90
@@ -398,7 +398,7 @@ subroutine packbits(dbits,nsymd,m0,sym)
900 return
end subroutine unpackgrid
- subroutine packmsg(msg0,dat,itype,bcontest)
+ subroutine packmsg(msg0,dat,itype)
! Packs a JT4/JT9/JT65 message into twelve 6-bit symbols
@@ -419,14 +419,10 @@ subroutine packbits(dbits,nsymd,m0,sym)
character*12 c1,c2
character*4 c3
character*6 grid6
- logical text1,text2,text3,bcontest
+ logical text1,text2,text3
itype=1
- if(bcontest) then
- call to_contest_msg(msg0,msg)
- else
- msg=msg0
- end if
+ msg=msg0
call fmtmsg(msg,iz)
if(msg(1:3).eq.'CQ ' .and. msg(4:4).ge.'0' .and. msg(4:4).le.'9' &
@@ -538,13 +534,13 @@ subroutine packbits(dbits,nsymd,m0,sym)
return
end subroutine packmsg
- subroutine unpackmsg(dat,msg,bcontest,mygrid)
+ subroutine unpackmsg(dat,msg)
parameter (NBASE=37*36*10*27*27*27)
parameter (NGBASE=180*180)
integer dat(:)
- character c1*12,c2*12,grid*4,msg*22,grid6*6,psfx*4,junk2*4,mygrid*6
- logical cqnnn,bcontest
+ character c1*12,c2*12,grid*4,msg*22,grid6*6,psfx*4,junk2*4
+ logical cqnnn
cqnnn=.false.
nc1=ishft(dat(1),22) + ishft(dat(2),16) + ishft(dat(3),10)+ &
@@ -658,8 +654,6 @@ subroutine packbits(dbits,nsymd,m0,sym)
msg(4:4).ge.'A' .and. msg(4:4).le.'Z' .and. &
msg(5:5).eq.' ') msg='CQ '//msg(3:)
- if(bcontest) call fix_contest_msg(mygrid,msg)
-
if(msg(1:5).eq.'CQ 00' .and. msg(6:6).ge.'0' .and. &
msg(6:6).le.'9') msg='CQ '//msg(6:)
@@ -714,13 +708,15 @@ subroutine packbits(dbits,nsymd,m0,sym)
return
end subroutine packtext
- subroutine unpacktext(nc1,nc2,nc3,msg)
+ subroutine unpacktext(nc1a,nc2a,nc3a,msg)
character*22 msg
character*44 c
data c/'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ +-./?'/
- nc3=iand(nc3,32767) !Remove the "plain text" bit
+ nc1=nc1a
+ nc2=nc2a
+ nc3=iand(nc3a,32767) !Remove the "plain text" bit
if(iand(nc1,1).ne.0) nc3=nc3+32768
nc1=nc1/2
if(iand(nc2,1).ne.0) nc3=nc3+65536