target-m68k: introduce read_imXX() functions
commit28b68cd79ef01e8b1f5bd26718cd8c09a12c625f
authorLaurent Vivier <laurent@vivier.eu>
Wed, 24 Jun 2015 00:28:59 +0000 (24 02:28 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 25 Oct 2016 18:54:47 +0000 (25 20:54 +0200)
treed185e53e012540b7450e163d2b8387bb0e3f6432
parentd8633620a112296fcf6a6ae9a1cbba614c0ca502
target-m68k: introduce read_imXX() functions

Read a 8, 16 or 32bit immediat constant.

An immediate constant is stored in the instruction opcode and
can be in one or two extension words.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-m68k/translate.c