中断如何在Intel 8080上工作? [英] How do interrupts work on the Intel 8080?

查看:130
本文介绍了中断如何在Intel 8080上工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

中断如何在Intel 8080上工作?我已经搜索了Google并在英特尔的官方文档(197X)中找到了关于此的简短描述.我需要对此进行详细说明,以模拟此CPU.

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 detailed explanation about it, to emulate this CPU.

推荐答案

我终于找到了!

我在中断操作码所在的位置创建了一个称为bus的变量. 然后,我调用了一个函数来处理中断:

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为true. EI和DI指令处理INTE.

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

当INT和INTE为true时,将执行中断.

When INT and INTE is true interruption is executed.

这篇关于中断如何在Intel 8080上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆