How do interrupts work on the Intel 8080?

前端 未结 5 1317
名媛妹妹
名媛妹妹 2021-02-14 15:21

How do interrupts work on the Intel 8080? I have searched Google and in Intel\'s official documentation (197X), and I\'ve found only a little description about this. I need a d

5条回答
  •  别那么骄傲
    2021-02-14 16:09

    Function pointers to the interrupt handlers are stored in the low memory. Some 32 or so of the first addresses are hardware interrupts: hardware triggered.

    The next 32 or so address are user-triggerable, these are called software interrupts. They are triggered by an INT instruction.

    The parameter to INT is the software interrupt vector number, which will be the interrupt called.

    You will need to use the IRET instruction to return from interrupts.

    It's likely you should also disable interrupts as the first thing you do when entering an interrupt.

    For further detail, you should refer to the documentation for your specific processor model, it tends to vary widely.

提交回复
热议问题