Daniel Beer
6740d7d98b
simx: MSP430X simulator by Bruce Burns <bgb@alum.mit.edu>
2020-09-05 14:56:37 +12:00
Daniel Beer
4f6a845fb4
Fix operation size error in instruction decoding.
2019-03-28 14:26:28 +13:00
Daniel Beer
057ad4e5e5
dis: fix extension word decoding for PC-relative operands.
...
We need to make sure that we perform the offset addition as a 20-bit
operation when an extension word is present.
2014-05-05 09:39:39 +12:00
Daniel Beer
9c913ee1f6
dis: fix source symbolic mode decoding.
2013-05-27 09:10:51 +12:00
Daniel Beer
da3b7e31a2
Partial revert of ce2e0a94f4
.
...
Jump instruction offsets are relative to start of instruction.
2013-03-13 10:40:43 +13:00
Daniel Beer
ce2e0a94f4
dis: correct offset for symbolic single-operand and jumps.
2013-02-25 15:40:03 +13:00
Daniel Beer
e9b6a77414
dis/sim: fix handling of opcodes with two indexed operands.
...
If the source operand is indexed, and the destination is symbolic (PC +
index), then the base for the destination index is the program counter
*after* having fetched the source index.
Also, the addition of the index is done modulo 2^16 if the base points
within the lower 64 kB of memory.
2013-02-11 11:08:43 +13:00
Daniel Beer
65b2e94a2e
dis: fix constant generation for single-operand.
...
Indexed mode with R3 shouldn't consume an index word, because this is
the combination used for generating the constant #1 .
2013-01-15 11:47:50 +13:00
Peter A. Bigot
fc336e78d0
Correct source bits shift offset for non-register extension word
2012-06-28 09:49:42 +12:00
Peter A. Bigot
19dfb6b64c
Correct pushm.a count/register adjustment
...
The adjustment was applied to the register instead of the count, causing
0x144b to decode as "PUSHM.A #4 , R12".
2012-06-28 09:49:42 +12:00
Peter A. Bigot
25f6df0d0f
fix disassembly of 20-bit calla operands
2012-06-05 12:01:53 +12:00
Peter A. Bigot
8fe14ca1da
Correct counts in disassembled rxxm/pushm/popm
2012-06-05 12:01:50 +12:00
Tamas TEVESZ
d98d990752
Kill unused variables
...
Mark those that are unused but can't be killed accordingly.
2011-11-15 09:26:35 +13:00
Tamas TEVESZ
2fe1580843
Kill "unsigned op 0" comparisons
...
- simio/simio.c, simio/simio_gpio.c, simio_timer.c, simio_tracer.c, util/dis.c
Kill unused variables
- util/expr.c, util/output_util.c
2011-11-13 16:46:33 +13:00
Daniel Beer
d4fee98904
Restructuring: moved low-level utility code to util/
2011-09-14 16:19:30 +12:00