summaryrefslogtreecommitdiff
path: root/lib/extractmessage77.f90
blob: 869d951e85065f8f3838fd1919f50da9f5d07c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
subroutine extractmessage77(decoded77,msgreceived)
  use packjt

  character*22 msgreceived
  character*77 cbits
  integer*1 decoded77(77)
  integer*4 i4Dec6BitWords(12)

  write(cbits,'(77i1)') decoded77
!**** Temporary: For now, just handle i5bit=0.
  read(cbits,'(12b6)') i4Dec6BitWords 
  read(cbits,'(72x,i5.5)') i5bit
  if( i5bit .eq. 0 ) then
    call unpackmsg(i4Dec6BitWords,msgreceived)
  endif
  return
end subroutine extractmessage77