comparison rvinterf/lowlevel/tfc139.c @ 986:65418b391513

tfc139: -m option restores bogus mot931c.exe-mimicking operation
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 12 Dec 2015 03:48:19 +0000
parents 8109185528c1
children
comparison
equal deleted inserted replaced
985:8109185528c1 986:65418b391513
138 extern int optind; 138 extern int optind;
139 int c; 139 int c;
140 fd_set fds; 140 fd_set fds;
141 141
142 baudrate_name = "57600"; /* what C139 firmware uses */ 142 baudrate_name = "57600"; /* what C139 firmware uses */
143 while ((c = getopt(argc, argv, "a:AB:l:s:w:")) != EOF) 143 while ((c = getopt(argc, argv, "a:AB:l:ms:w:")) != EOF)
144 switch (c) { 144 switch (c) {
145 case 'a': 145 case 'a':
146 shellcode_load_addr = strtoul(optarg, 0, 16); 146 shellcode_load_addr = strtoul(optarg, 0, 16);
147 continue; 147 continue;
148 case 'B':
149 baudrate_name = optarg;
150 continue;
151 case 'l':
152 logfname = optarg;
153 continue;
154 case 'm':
155 /* mimic mot931c.exe */
156 shellcode_load_addr = 0x800000;
157 stack_smash_addr = 0x837C54;
158 /* FALL THRU */
148 case 'A': 159 case 'A':
149 thumb_entry = 0; 160 thumb_entry = 0;
150 continue;
151 case 'B':
152 baudrate_name = optarg;
153 continue;
154 case 'l':
155 logfname = optarg;
156 continue; 161 continue;
157 case 's': 162 case 's':
158 stack_smash_addr = strtoul(optarg, 0, 16); 163 stack_smash_addr = strtoul(optarg, 0, 16);
159 continue; 164 continue;
160 case 'w': 165 case 'w':