How to save the registers on x86_64 for an interrupt service routine?

前端 未结 4 580
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 19:46

I am looking at some old code from a school project, and in trying to compile it on my laptop I ran into some problems. It was originally written for an old 32 bit version o

4条回答
  •  盖世英雄少女心
    2020-12-08 20:16

    pusha is not valid in 64-bit mode because it is redundant. Pushing each register individually is exactly the thing to do.

提交回复
热议问题