# HG changeset patch # User Mychaela Falconia # Date 1449892099 0 # Node ID 65418b391513d802970969c95fdddbed502379e5 # Parent 8109185528c1604edbed73e7bb9c1292b1767dba tfc139: -m option restores bogus mot931c.exe-mimicking operation diff -r 8109185528c1 -r 65418b391513 rvinterf/lowlevel/tfc139.c --- 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;