URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Show entire file |
Details |
Blame |
View Log
Rev 157 |
Rev 225 |
Line 1... |
Line 1... |
/* Disassembler code for CRX.
|
/* Disassembler code for CRX.
|
Copyright 2004, 2005, 2007 Free Software Foundation, Inc.
|
Copyright 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
|
Contributed by Tomer Levi, NSC, Israel.
|
Contributed by Tomer Levi, NSC, Israel.
|
Written by Tomer Levi.
|
Written by Tomer Levi.
|
|
|
This file is part of the GNU opcodes library.
|
This file is part of the GNU opcodes library.
|
|
|
Line 353... |
Line 353... |
match_opcode (void)
|
match_opcode (void)
|
{
|
{
|
unsigned long mask;
|
unsigned long mask;
|
|
|
/* The instruction 'constant' opcode doewsn't exceed 32 bits. */
|
/* The instruction 'constant' opcode doewsn't exceed 32 bits. */
|
unsigned long doubleWord = words[1] + (words[0] << 16);
|
unsigned long doubleWord = (words[1] + (words[0] << 16)) & 0xffffffff;
|
|
|
/* Start searching from end of instruction table. */
|
/* Start searching from end of instruction table. */
|
instruction = &crx_instruction[NUMOPCODES - 2];
|
instruction = &crx_instruction[NUMOPCODES - 2];
|
|
|
/* Loop over instruction table until a full match is found. */
|
/* Loop over instruction table until a full match is found. */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.