disassembler-x86-intel
Version:
An Intel x86 disassembler, generates assembly from Opcode
15 lines (14 loc) • 1.09 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CMP_TABLE = void 0;
var hashMap_1 = require("../../helper/hashMap");
exports.CMP_TABLE = new hashMap_1.HashMap()
.set({ opcode: '3C' }, { operation: 'cmp', length: 'b', op1: 'al', op2: 'imm8', isRegisterIncluded: true })
.set({ opcode: '3D' }, { operation: 'cmp', length: 'd', op1: 'eax', op2: 'imm32', isRegisterIncluded: true, has16Bit: true })
.set({ opcode: '80', modRm: '7' }, { operation: 'cmp', length: 'd', op1: 'm8', op2: 'imm8' })
.set({ opcode: '81', modRm: '7' }, { operation: 'cmp', length: 'd', op1: 'm32', op2: 'imm32', has16Bit: true })
.set({ opcode: '83', modRm: '7' }, { operation: 'cmp', length: 'b', op1: 'm32', op2: 'imm8' })
.set({ opcode: '38' }, { operation: 'cmp', op1: 'm8', op2: 'r8' })
.set({ opcode: '39' }, { operation: 'cmp', op1: 'm32', op2: 'r32', has16Bit: true })
.set({ opcode: '3A' }, { operation: 'cmp', op1: 'r8', op2: 'm8' })
.set({ opcode: '3B' }, { operation: 'cmp', op1: 'r32', op2: 'm32', has16Bit: true });