How do interrupts work on the Intel 8080?

前端 未结 5 1328
名媛妹妹
名媛妹妹 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:01

    I finally find it!

    I create a variable called bus where interruption opcode goes. Then, I called a function to handle the interruption:

    void i8080::interruption()
    {
        // only for RST
        cycles -= cycles_table[bus];
        instruction[bus]();
        INT = false;
    }
    

    INT is true when needs an interruption. EI and DI instructions handle INTE.

    When INT and INTE is true interruption is executed.

提交回复
热议问题