home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
500
/
488
/
basic2.mod
< prev
next >
Wrap
Text File
|
1984-05-28
|
2KB
|
61 lines
BASIC20.PAT
The following patches to BASIC.COM and BASICA.COM ver 2.0 were
downloaded from the IBM Dealer Support database on 5/18/84.
* * *
12/14/83
IBM PATCH #AH0088 LOF function returns wrong value
In BASIC and BASICA 2.0, the LOF function returns the wrong value
for records 127 and above. Correct values will be returned if
the file is closed, reopened, and reset to record #1. The following
pgm demonstrates this situation:
EXAMPLE:
10 OPEN "R",1,"PROB.TXT",256
20 FIELD 1,255 AS D$
30 LSET D$=STRING$(255,"*")
40 FOR R=1 TO 135
50 PUT 1,R
60 PRINT "Rec = ";R;"LOF = ";LOF(1)/256
70 NEXT
80 CLOSE
90 OPEN "R",1,"PROB.TXT"256
100 PRINT LOF(1)/256
110 FIELD 1,255 AS D$
120 PUT 1,1
130 PRINT LOF(1)/256
140 CLOSE
150 KILL "PROB.TXT"
160 END
In the script below, you enter what appears within < >. "xxxx" = Don't care.
The fix for BASIC.COM is as follows:
A><DEBUG BASIC.COM> <cr>
-<E1F65> <cr>
xxxx:1F65 7E.<76> <cr>
-<W> <cr>
Writing 3F80 bytes
-<Q> <cr>
A>
The fix for BASICA.COM is as follows:
A><DEBUG BASICA.COM> <cr>
-<E44D2> <cr>
xxxx:44D2 7E.<76> <cr>
-W <cr>
Writing 6580 Bytes <cr>
-Q <cr>
A>
Run the test program on the patched files.
-- Jim Gainsley CIS:[70346,457] --