mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-16 09:01:59 -05:00
36 lines
725 B
FortranFixed
36 lines
725 B
FortranFixed
|
subroutine unpackcall(ncall,word)
|
||
|
|
||
|
character word*12,c*37
|
||
|
|
||
|
data c/'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ '/
|
||
|
|
||
|
n=ncall
|
||
|
word='......'
|
||
|
if(n.ge.262177560) go to 999 !Plain text message ...
|
||
|
i=mod(n,27)+11
|
||
|
word(6:6)=c(i:i)
|
||
|
n=n/27
|
||
|
i=mod(n,27)+11
|
||
|
word(5:5)=c(i:i)
|
||
|
n=n/27
|
||
|
i=mod(n,27)+11
|
||
|
word(4:4)=c(i:i)
|
||
|
n=n/27
|
||
|
i=mod(n,10)+1
|
||
|
word(3:3)=c(i:i)
|
||
|
n=n/10
|
||
|
i=mod(n,36)+1
|
||
|
word(2:2)=c(i:i)
|
||
|
n=n/36
|
||
|
i=n+1
|
||
|
word(1:1)=c(i:i)
|
||
|
do i=1,4
|
||
|
if(word(i:i).ne.' ') go to 10
|
||
|
enddo
|
||
|
go to 999
|
||
|
10 word=word(i:)
|
||
|
|
||
|
999 if(word(1:3).eq.'3D0') word='3DA0'//word(4:)
|
||
|
return
|
||
|
end
|