| OLD | NEW |
| 1 /* Copyright (c) 2007, Google Inc. | 1 /* Copyright (c) 2007, Google Inc. |
| 2 * All rights reserved. | 2 * All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 * | 29 * |
| 30 * --- | 30 * --- |
| 31 * Author: Joi Sigurdsson | 31 * Author: Joi Sigurdsson |
| 32 * | 32 * |
| 33 * Table of relevant information about how to decode the ModR/M byte. | 33 * Table of relevant information about how to decode the ModR/M byte. |
| 34 * Based on information in the IA-32 Intel® Architecture | 34 * Based on information in the IA-32 Intel® Architecture |
| 35 * Software Developers Manual Volume 2: Instruction Set Reference. | 35 * Software Developer's Manual Volume 2: Instruction Set Reference. |
| 36 */ | 36 */ |
| 37 | 37 |
| 38 #include "mini_disassembler.h" | 38 #include "mini_disassembler.h" |
| 39 #include "mini_disassembler_types.h" | 39 #include "mini_disassembler_types.h" |
| 40 | 40 |
| 41 namespace sidestep { | 41 namespace sidestep { |
| 42 | 42 |
| 43 const ModrmEntry MiniDisassembler::s_ia16_modrm_map_[] = { | 43 const ModrmEntry MiniDisassembler::s_ia16_modrm_map_[] = { |
| 44 // mod == 00 | 44 // mod == 00 |
| 45 /* r/m == 000 */ { false, false, OS_ZERO }, | 45 /* r/m == 000 */ { false, false, OS_ZERO }, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 /* r/m == 001 */ { false, false, OS_ZERO }, | 112 /* r/m == 001 */ { false, false, OS_ZERO }, |
| 113 /* r/m == 010 */ { false, false, OS_ZERO }, | 113 /* r/m == 010 */ { false, false, OS_ZERO }, |
| 114 /* r/m == 011 */ { false, false, OS_ZERO }, | 114 /* r/m == 011 */ { false, false, OS_ZERO }, |
| 115 /* r/m == 100 */ { false, false, OS_ZERO }, | 115 /* r/m == 100 */ { false, false, OS_ZERO }, |
| 116 /* r/m == 101 */ { false, false, OS_ZERO }, | 116 /* r/m == 101 */ { false, false, OS_ZERO }, |
| 117 /* r/m == 110 */ { false, false, OS_ZERO }, | 117 /* r/m == 110 */ { false, false, OS_ZERO }, |
| 118 /* r/m == 111 */ { false, false, OS_ZERO }, | 118 /* r/m == 111 */ { false, false, OS_ZERO }, |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 }; // namespace sidestep | 121 }; // namespace sidestep |
| OLD | NEW |