FreeCalypso > hg > freecalypso-sw
changeset 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 | 7a55a3eb985a |
files | rvinterf/lowlevel/tfc139.c |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/lowlevel/tfc139.c Sat Dec 12 03:24:52 2015 +0000 +++ b/rvinterf/lowlevel/tfc139.c Sat Dec 12 03:48:19 2015 +0000 @@ -140,20 +140,25 @@ fd_set fds; baudrate_name = "57600"; /* what C139 firmware uses */ - while ((c = getopt(argc, argv, "a:AB:l:s:w:")) != EOF) + while ((c = getopt(argc, argv, "a:AB:l:ms:w:")) != EOF) switch (c) { case 'a': shellcode_load_addr = strtoul(optarg, 0, 16); continue; - case 'A': - thumb_entry = 0; - continue; case 'B': baudrate_name = optarg; continue; case 'l': logfname = optarg; continue; + case 'm': + /* mimic mot931c.exe */ + shellcode_load_addr = 0x800000; + stack_smash_addr = 0x837C54; + /* FALL THRU */ + case 'A': + thumb_entry = 0; + continue; case 's': stack_smash_addr = strtoul(optarg, 0, 16); continue;