comparison src/v09.c @ 82:82d03e816deb

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 11 Aug 2018 14:04:54 +0900
parents 41f14f365b34
children 2e3d4b54ec2d
comparison
equal deleted inserted replaced
81:92b729506212 82:82d03e816deb
107 * it should have 2MB memory 107 * it should have 2MB memory
108 * 0x10000-0xfffff ram 108 * 0x10000-0xfffff ram
109 * >0x100000 lapround 109 * >0x100000 lapround
110 * 110 *
111 * discless boot 111 * discless boot
112 * rom image will be copyied from 0xed00-0x1xxxx 112 * rom image will be copyied from 0xed00-0x1xxxx (all ram)
113 * boot copies 0x10000-0x1xxxx to os9's boot memory 113 * boot copies 0x10000-0x1xxxx to os9's boot memory (ususally done by rel.asm )
114 * after that 0x10000-0x1xxx will be all free
114 */ 115 */
115 phymem = malloc(memsize + len - 0x2000); 116 phymem = malloc(memsize + len - 0x2000);
116 rommemsize = memsize + len - 0x2000; 117 rommemsize = memsize + len - 0x2000;
117 mem = phymem + memsize - 0x10000 ; 118 mem = phymem + memsize - 0x10000 ;
118 mmu = &mem[0xffa0]; 119 mmu = &mem[0xffa0];
151 { 152 {
152 char *imagename=0; 153 char *imagename=0;
153 int i; 154 int i;
154 int setterm = 1; 155 int setterm = 1;
155 timerirq = 2; // use FIRQ default 156 timerirq = 2; // use FIRQ default
156 memsize = 512*1024; 157 memsize = 512*1024*4; // full 2 mbute
157 escchar='\x1d'; 158 escchar='\x1d';
158 tracelo=0;tracehi=0xffff; 159 tracelo=0;tracehi=0xffff;
159 for(i=1;i<argc;i++) { 160 for(i=1;i<argc;i++) {
160 if (strcmp(argv[i],"-t")==0) { 161 if (strcmp(argv[i],"-t")==0) {
161 i++; 162 i++;