Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm26/stand/BBBB Fix multiple-file loading. Bump v...



details:   https://anonhg.NetBSD.org/src/rev/a607db198b76
branches:  trunk
changeset: 500294:a607db198b76
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat Dec 09 13:30:25 2000 +0000

description:
Fix multiple-file loading.  Bump version number to 0.41.

diffstat:

 sys/arch/arm26/stand/BBBB/BBBB |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r e809dd88a466 -r a607db198b76 sys/arch/arm26/stand/BBBB/BBBB
--- a/sys/arch/arm26/stand/BBBB/BBBB    Sat Dec 09 13:20:04 2000 +0000
+++ b/sys/arch/arm26/stand/BBBB/BBBB    Sat Dec 09 13:30:25 2000 +0000
@@ -1,5 +1,5 @@
 REM>BBBB
-REM $NetBSD: BBBB,v 1.2 2000/11/25 18:30:23 bjh21 Exp $
+REM $NetBSD: BBBB,v 1.3 2000/12/09 13:30:25 bjh21 Exp $
 REM
 REM Copyright (c) 1998, 1999, 2000 Ben Harris
 REM All rights reserved.
@@ -30,7 +30,7 @@
 REM
 REM Ben's BASIC BSD Booter (allegedly)
 debug% = 1
-PRINT ">> BBBB, Revision 0.40"
+PRINT ">> BBBB, Revision 0.41"
 SYS "OS_ReadMemMapInfo" TO nbpp%, npages%
 IF debug% THEN
   PRINT "Machine has ";npages%;" pages of ";nbpp% DIV 1024;"K each.  ";
@@ -277,7 +277,7 @@
 
 DEF PROCread(addr%, size%, offset%)
   LOCAL i%
-  FOR i% = 0 TO nfiles%
+  FOR i% = 0 TO nfiles% - 1
     IF file%(i%) = 0 THEN
       file%(i%) = OPENIN(file$(i%))
       IF file%(i%) = 0 THEN ERROR 1, "Couldn't open " + file$(i%)
@@ -292,6 +292,7 @@
       ELSE
         SYS "OS_GBPB", 3, file%(i%), addr%, fsiz%(i%) - offset%, offset%
         size% -= fsiz%(i%) - offset%
+        addr% += fsiz%(i%) - offset%
         offset% = 0
       ENDIF
     ENDIF



Home | Main Index | Thread Index | Old Index