diff os9/makerom.c @ 17:67046a9431a0

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 08 Jul 2018 16:15:34 +0900
parents bb6a2a9f59f1
children 7104ad38bed3
line wrap: on
line diff
--- a/os9/makerom.c	Sun Jul 08 09:34:34 2018 +0900
+++ b/os9/makerom.c	Sun Jul 08 16:15:34 2018 +0900
@@ -41,7 +41,7 @@
 char * outfile ;
 
 #define LV2START  0xffd0     // our own small boot for mmu
-#define LV2ROMEND 0xff00
+#define LV2ROMEND 0xff80
 
 // #define DEBUG
 
@@ -121,7 +121,7 @@
        if (level == 1)
           top = 0xf800;  // OS9p1
        else {
-          top = 0x10000-(m->size+0x100);
+          top = 0x10000-(m->size+0x80);
           rewrite_vector(m,m->size,m->mod+getword(m->mod+2),7);
        }
    }
@@ -203,8 +203,8 @@
               fputc(0xff,romfile);
            }
         } else {
-           int pend = 0x10000-( cur->size +0x100);
-           for(; pos < pend ; pos++) {      // os9p1 ends 0xfeff
+           int pend = 0x10000-( cur->size +0x80);
+           for(; pos < pend ; pos++) {      // os9p1 ends 0xff7f
               fputc(0xff,romfile);
            }
         }