Skip to content

Interrupt instructions should write the stack #42

@hainest

Description

@hainest

I didn't go diving into the code, so I'm not sure if the change would best be made in the json (to match the call instructions) or in the generator. I can make a PR, if folks could point me in the right direction on this (although my C# is very rusty).

  {
    "mnemonic": "int",
    "opcode": "CD",
    "operands": [
      {
        "operand_type": "imm",
        "encoding": "uimm8",
        "element_type": "uint8",
        "width16": 1,
        "width32": 1,
        "width64": 1
      },
      {
        "action": "write",
        "operand_type": "implicit_reg",
        "register": "ssz_ip",
        "visible": false
      }
    ],
    "meta_info": {
      "category": "INTERRUPT",
      "extension": "BASE",
      "isa_set": "I86"
    },
    "affected_flags": {
      "access": "must_write",
      "tf": "0",
      "if": "m",
      "iopl": "t",
      "nt": "m",
      "rf": "0",
      "vm": "t_m",
      "ac": "m",
      "vif": "m"
    },
    "comment": "SUNMQVNTOklOVA0KQVRUUklCVVRFUzpOT1RTWA0KQ1BMOjMNCkNBVEVHT1JZOklOVEVSUlVQVA0KRVhURU5TSU9OOkJBU0UNCklTQV9TRVQ6STg2DQpGTEFHUzpNVVNUIFsgdmlmLW1vZCBhYy1tb2Qgdm0tdHN0IHZtLW1vZCByZi0wIG50LW1vZCBpb3BsLXRzdCBpZi1tb2QgdGYtMCBdDQpQQVRURVJOOjB4Q0QgVUlNTTgoKQ0KT1BFUkFORFM6SU1NMDpyOmIgUkVHMD1ySVAoKTp3OlNVUFA="
  },

Intel SDM June 2025

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions