home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
mtrek.shar.Z
/
mtrek.shar
/
mesage.ftn
< prev
next >
Wrap
Text File
|
1990-04-02
|
1KB
|
67 lines
SUBROUTINE MESAGE
C
C Here is where messages from the driver zip are processed.
C Overlays seperate the run time messages from the long messages
C one gets when one is destroyed.
C
INCLUDE 'LEDFOR.COM/-LI'
INCLUDE 'PLAYER.COM/-LI'
REAL OVER(2)
DATA OVER/6RLONGER,6RTWENTY/
IF(ISENT(WHO,1).EQ.0)GOTO 10000
DO 10000 I=1,10
INTMSG=ISENT(WHO,I)
IF(INTMSG.EQ.0)GOTO 10000
C
C Check for bad message number
C
IF((INTMSG.GT.32).OR.(INTMSG.LT.0))GOTO 10005
C
C Check for long message
C
IF((INTMSG.EQ. 3).OR.(INTMSG.EQ.15))GOTO 10005
IF((INTMSG.EQ.16).OR.(INTMSG.EQ.30))GOTO 10005
C
C Message is a twenty character type
C
CALL TWENTY(INTMSG)
GOTO 10001
C
C Message is a long one
C
10005 CALL MNLOAD(OVER(1)) ! Load longer
CALL LONGER(INTMSG)
CALL MNLOAD(OVER(2)) ! Load twenty
10001 ISENT(WHO,I)=0
10000 CONTINUE
RETURN
END
SUBROUTINE WRTMSG(NUM,STRING)
C
C Write the short messages at the bottom of the screen
C
INCLUDE 'PLAYER.COM/-LI'
INTEGER*2 NUM,LOCX(20),LOCY(20)
BYTE STRING(21)
DATA LOCX/01,61,41,21,21,21,01,21,01,41,
$ 61,41,01,61,01,21,41,61,61,00/
DATA LOCY/20,20,20,20,21,24,21,22,23,22,
$ 21,21,24,22,22,23,23,23,24,00/
IF(COUNT(NUM).GT.0)GOTO 10000
CALL WRITE(LOCY(NUM),LOCX(NUM),STRING)
10000 COUNT(NUM)=3
RETURN
ENTRY BLANKS
C
C Clean up messages
C
DO 10002 I=1,20
IF(COUNT(I).LT.0)GOTO 10002
COUNT(I)=COUNT(I)-1
IF(COUNT(I).EQ.-1)CALL WRITE(LOCY(I),LOCX(I),' ')
10002 CONTINUE
RETURN
END