From a9f497f5794228d5da28cd58da75cd82801a1f29 Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Mon, 12 Oct 2020 15:03:03 +0200 Subject: [PATCH] fixed push and added pop --- osaca/data/isa/x86.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/osaca/data/isa/x86.yml b/osaca/data/isa/x86.yml index da71771..fc9d3a5 100644 --- a/osaca/data/isa/x86.yml +++ b/osaca/data/isa/x86.yml @@ -3167,7 +3167,7 @@ instruction_forms: destination: false hidden_operands: - class: "memory" - base: "gpr" + base: {name: 'rsp'} offset: ~ index: ~ scale: 1 @@ -3177,11 +3177,29 @@ instruction_forms: name: "rsp" source: true destination: true + - name: pop + operands: + - class: "register" + name: "gpr" + source: false + destination: true + hidden_operands: + - class: "memory" + base: {name: 'rsp'} + offset: ~ + index: ~ + scale: 1 + source: true + destination: false + - class: "register" + name: "rsp" + source: true + destination: true - name: pushfq operands: [] hidden_operands: - class: "memory" - base: "gpr" + base: {name: 'rsp'} offset: ~ index: ~ scale: 1