Uploaded by portal0001 on Jan 29, 2010
I have arbitrarily numbered the programs 1 to 3. This indicates their increasing size.
Here is the rest of the code for program 1.
I compiled it recently using F95 from Salford (silverfrost)
C RM ******** THIS LOOKS ODD - if I can find a system routine I will use it instead SUBROUTINE CLEARB(IB,N) INTEGER IB(800) DO 10 I=1,N IB(I) = 0
10 CONTINUE RETURN END
C RM ******* MAKE A MOCK UP FOR THIS
C I am guessing that it reads data into IB from channel 5
C suggestion: experiment writing little bit of code to write out, say, 3 blocks of 800 numbers.
C then verify that we can read this back. SUBROUTINE BCDTRM(IB,IC,IEOF)
C as used in this program, IC is 5 INTEGER IB(800) INTEGER IW(40) INTEGER IPOS
C I don't have the specification for IEOF, but I think what I wrote below will suffice for this mockup
C it is only tested elsewhere to see if it is less than 1 IPOS = 1
C
C purpose: read data into IB array.
C proposed method: copy code already tested in TIN005.for DO 10 I=1,20 READ(IC,400,END=20) IW
400 FORMAT(40A2)
C move IW array to next position in IB array CALL SHIFTC(IW,1,40,IB,IPOS)
10 IPOS = IPOS + 40
C if there is no data at all, IPOS is still 1
20 IEOF = IPOS - 1 RETURN END
C read 800 numbers from channel IC
C if eof set IEOF = 1
C perhaps assume that all the data will be there, except if eof, when none will be there SUBROUTINE SHIFTC(IW,I,J,IB,IPOS) INTEGER IW(40) INTEGER IB(800) DO 10 I1=I,J
10 IB(IPOS+I1-I) = IW(I1) RETURN END SUBROUTINE PUTREC
C PRINT 80 CHARACTERS STARTING AT IB(IPOS)
C IF FIRST CHARACTER = "H" DOUBLE SPACE
C "N" DOUBLE SPACE
C "S" SINGLE SPACE COMMON/CIB/IB(800) COMMON/CPOS/IPOS INTEGER*1 MY(4) EQUIVALENCE (MX,MY)
C the following may not work ??????????????? MX = IB(IPOS) IF (MY(1).EQ."H") GO TO 10 IF (MY(1).EQ."N") GO TO 20 WRITE(4,1000) (IB(I),I=IPOS,IPOS+39)
1000 FORMAT(" ",40A2) RETURN
20 WRITE(4,1020) (IB(I),I=IPOS,IPOS+39)
1020 FORMAT(" ",40A2,//) RETURN
10 WRITE(4,1010) (IB(I),I=IPOS,IPOS+39)
1010 FORMAT("0",40A2,//) RETURN END
-
0 likes, 0 dislikes
0:28
1976 Yamaha MX400by 805comtech16,528 views
6:40
C Program Flow Control: Computer Programming 3: 24HourAnswers Tutorialsby Diabound426 views
0:16
mx400_2.AVIby chandy031806590 views
2:39
1975 1/2 yamaha mx 125 pre restorationby motocycoplumber1,835 views
2:07
Penton / KTM 400 1974by ozktm10121,759 views
0:20
HISTORY 009by richardmullins44131 views
0:14
C Computer Programming Language #1 - Introby Clanguage81,390 views
3:36
SATCOM CB RADIO, 80 CHANNEL MODby leenmeanbog1,433 views
7:49
Java Lesson 7 | Making Prime Number Programby macheads1013,372 views
7:02
Learning Array in Cby mruopatl10,067 views
3:25
Marty Smith Team Honda - 1975 Mid-Ohio 125GP - Vintage Motocrossby RoadrunnerDomains3,443 views
5:32
C Programming Tutorial - 15 - Simple Array Programby thenewboston108,403 views
6:44
Helmet cam - AHRMA Vintage Motocross at Tulare Cycle Parkby phaedrus4448,587 views
0:38
HISTORY 004by richardmullins44603 views
59:32
Authors@Google: Peter Seibelby AtGoogleTalks13,365 views
1:48
2010-03-28 圏央道の延伸.wmvby mytubevacuumtube513 views
1:44
J48S - SV2JAO & SV3AWG Operatingby sv2clj665 views
4:10
ドライブ微速度撮影 岩手県盛岡~群馬県高崎by ggetready677 views
8:59
GCB全国対戦5/26「ラサ秘密工場基地」第1戦by ottotottot61 views
2:40
HINDRAF & HRP: The end result of no BC & IC.by sjayathas323 views
- Loading more suggestions...
Link to this comment:
All Comments (0)