Tadashi G. Takaoka
5549f35977
Move lowercase conversion to output_util.c
2018-04-03 22:07:07 +09:00
Tadashi G. Takaoka
5b9bdbc2aa
Add lowercase_dis option
...
The lowercase_dis option, if set to true, changes instruction and
register names of disassembler command to lower case. This can be
matched with hexadecimal dump of raw instruction and address. It also
matches with GNU debugger and assembler.
2018-04-02 23:28:11 +09: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