aboutsummaryrefslogtreecommitdiff
path: root/opcodes/s12z-opc.c
AgeCommit message (Collapse)AuthorFilesLines
2019-04-29S12Z: Opcodes: Fix crash when trying to decode a truncated operation.John Darrington1-1/+1
opcodes/ * s12z-opc.c (shift_discrim): Return OP_INVALID when reading fails. gas/ * testsuite/gas/s12z/truncated.d: New file. * testsuite/gas/s12z/truncated.s: New file. * testsuite/gas/s12z/s12z.exp: Add new test.
2019-04-24S12Z: Opcodes: Handle bit map operations with non-canonical operands.John Darrington1-3/+1
opcodes/ * s12z-opc.c (bm_decode): Handle the RESERVERD0 case. gas/ * testsuite/gas/s12z/bit-manip-invalid.d: Extend the test. * testsuite/gas/s12z/bit-manip-invalid.s: Extend the test.
2019-04-12S12Z: opcodes: Replace "operator" with "optr".John Darrington1-26/+26
opcodes/ * s12z-dis.c, s12z-opc.c, s12z-opc.h: Replace operator with optr.
2019-01-03S12Z: opcodes: Separate the decoding of operations from their display.John Darrington1-0/+2701
This change adds an abstraction layer between the decoding of machine operations and their disassembled textual representation. This allows the decoding routines to be re-used for other purposes (at the expense) of slightly slower running time. ChangeLog: opcodes/ * s12z-opc.c: New file. * s12z-opc.h: New file. * s12z-dis.c: Removed all code not directly related to display of instructions. Used the interface provided by the new files instead. * Makefile.am (TARGET_LIBOPCODES_CFILES) Add s12z-opc.c. * Makefile.in: regenerate. * configure.ac (bfd_s12z_arch): Correct the dependencies. * configure: regenerate.