AVR 上的软件中断

Software interrupts on AVR

我了解 x86 机器代码可以使用软件中断 (by entering a 32-bit value corresponding to a kernel function into the EAX register of the processor and then executing INT 0x80) 进行 POSIX 系统调用。

我正在考虑为 AVR 架构设计一个小型的类 Unix 操作系统,以供娱乐和学习。 x86 INT 等软件中断如何在 AVR 上工作?

他们没有。 AVR 没有提供软件中断。如果您需要从软件生成中断,那么您将需要说服一些硬件来生成它。否则只需正常使用 JSR。