From 2e80f71dcd2367ceae00df88405deee66a68b9ca Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 17 Jul 2007 16:55:33 -0700 Subject: Implemented jnz. --HG-- extra : convert_revision : ea169ad68acbb3383443586b783b831b3a9eecf9 --- src/arch/x86/isa/decoder/one_byte_opcodes.isa | 2 +- src/arch/x86/isa/insts/control_transfer/jump.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/arch') diff --git a/src/arch/x86/isa/decoder/one_byte_opcodes.isa b/src/arch/x86/isa/decoder/one_byte_opcodes.isa index 4be83bf54..546577662 100644 --- a/src/arch/x86/isa/decoder/one_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/one_byte_opcodes.isa @@ -264,7 +264,7 @@ 0x2: jb_Jb(); 0x3: jnb_Jb(); 0x4: Inst::JZ(Jb); - 0x5: jnz_Jb(); + 0x5: Inst::JNZ(Jb); 0x6: jbe_Jb(); 0x7: jnbe_Jb(); } diff --git a/src/arch/x86/isa/insts/control_transfer/jump.py b/src/arch/x86/isa/insts/control_transfer/jump.py index 9a013a823..15f00e083 100644 --- a/src/arch/x86/isa/insts/control_transfer/jump.py +++ b/src/arch/x86/isa/insts/control_transfer/jump.py @@ -60,4 +60,11 @@ def macroop JZ_I limm t2, imm wrip t1, t2, flags=(CZF,) }; + +def macroop JNZ_I +{ + rdip t1 + limm t2, imm + wrip t1, t2, flags=(nCZF,) +}; ''' -- cgit v1.2.3