home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d143
/
rim.lha
/
Rim
/
RimSrcAmi.Arc
/
HELPGEN.FFF
< prev
next >
Wrap
Text File
|
1988-01-05
|
2KB
|
74 lines
$NOFLOATCALLS
$STORAGE:4
PROGRAM HELPIN
INTEGER*4 TUPLE(28)
INTEGER*4 HENDC,HENDD
CHARACTER*4 CHENDC,CHENDD
EQUIVALENCE(HENDC,CHENDC),(HENDD,CHENDD)
REAL*8 DBNAME
REAL*8 RNAME
CHARACTER*8 CRNAME,CDBNAM
EQUIVALENCE(CRNAME,RNAME),(CDBNAM,DBNAME)
DATA CHENDC/'ENDC'/,CHENDD/'ENDD'/
CDBNAM = 'HELPDB'
CRNAME = 'HELP'
OPEN(6,FILE='CON')
CALL RMOPEN(DBNAME)
CALL RMFIND(1,RNAME)
TUPLE(2) = 8
OPEN(2,FILE='HELPTXT.DAT',STATUS='OLD')
1 CONTINUE
READ (2,10)TUPLE(1)
C *** DEBUG
WRITE(6,5001)TUPLE(1)
5001 FORMAT(1X,' ** NEW TUPLE START ***** TXT=',A4)
C ***
10 FORMAT(A4)
READ (2,20)(TUPLE(I),I=3,7)
20 FORMAT(5A4)
50 CONTINUE
TUPLE(9) = 0
CALL GETL(TUPLE(10),TUPLE(8))
C IF(TUPLE(10).EQ.HENDC) GOTO 1
C IF(TUPLE(10).EQ.HENDD) GOTO 1000
C *** DEBUG
WRITE(6,6700)TUPLE(10),TUPLE(10)
6700 FORMAT(1X,' TUPLE=',A4,' HEX=',I12)
IF(TUPLE(10).EQ.1128549957)GOTO 1
IF(TUPLE(10).EQ.1145327173)GOTO 1000
C ***
CALL RMLOAD(1,TUPLE)
GO TO 50
1000 CONTINUE
CALL RMCLOS
STOP
END
SUBROUTINE GETL(LINE,NUMC)
DIMENSION LINE(20)
DIMENSION LINEX(20)
INTEGER BLANK
INTEGER*4 HENDC,HENDD
CHARACTER*4 CHENDC,CHENDD
EQUIVALENCE(HENDC,CHENDC),(HENDD,CHENDD)
CHARACTER*2 BLANKX
EQUIVALENCE(BLANK,BLANKX)
DATA BLANKX /' '/
DATA CHENDC/'ENDC'/,CHENDD/'ENDD'/
READ (2,10)LINEX
10 FORMAT(20A4)
LINE(1) = BLANK
LINE(20) = BLANK
M1 = NSCAN(LINEX,80,-80,CHAR(32),1,1)
IF(M1.LE.0) M1 = 2
ISHIFT = 2
IF(M1.EQ.1) ISHIFT = 1
IF(LINEX(1).EQ.HENDD) ISHIFT = 1
IF(LINEX(1).EQ.HENDC) ISHIFT = 1
IF(M1.NE.1) M1 = M1 + 1
CALL STRMOV(LINEX,1,79,LINE,ISHIFT)
NUMC = M1
RETURN
END