雷竞技注册

代表制度(第一部分)

微处理器

代表制度(第一部分)

由Tim Feiegenbaum在北西雅图社区学院制作的视频讲座。

  • 分享

我们来看看代议制。将有几个章节讨论这个代表性系统。为了理解a微处理器操作,我们将检查一个简短的程序及其执行。在编写程序之前,需要有一个指令集。指令集实际上是相当大的。我们只看三个指令,它们是微处理器指令集的一部分。我们将查看输入、输出和跳转(或跳转/分支)。文本中的表16-1提供了输入、输出和跳转的示例。我在这张幻灯片上重现了那张桌子。在这种情况下,我们将查看指令输入,指令输出和指令分支。等价于输入的二进制值就是这个二进制值。这就是输入指令。 This will be the instruction that is the command for output and this will be the instruction that is the command for jump or branch. This is the hexadecimal equivalent of each of those. It would be DB, D3, and C3.

第一条指令是输入。让我们看看这个,输入,这实际上是指令。这并不总是意味着我们这里所说的通用指令集的输入。这个命令的意思是输入。如果将此信息提供给处理器,则会导致以下情况发生。指令的第二字节被放置在地址总线的下字节上,标识请求数据的设备。这是内存,这是组成输入的第一个字节这是计数器的第一个计数,从内存中开始检索将成为输入的数据。控制总线上的一个信号开始活动,以表明一个外部数据输入正在发生。这个信号将是一个活动的低IOR,这将是一个从内存读取的信号。回想一下发生了什么,我们从内存读到处理器。 The data bus is accessed and the value is placed in the accumulator. This item in memory is accessed by the data bus and it's placed in the accumulator which is one of the寄存器在微处理器。微处理器增加程序计数器,并继续执行存储在内存中的下一条顺序指令。当这个命令被执行,输入,这四件事发生。

下一个我们要看的是输出。现在,下一个指令输出,就在这里,是输入函数的逆。它导致以下发生累加器内容被发送到数据总线与一个IOW,注意这是写。注意到累加器;这是微处理器中的寄存器被发送到数据总线。这将会进入内存,将数据写入内存。这告诉外部设备正在输出的数据现在在总线上。接着,程序计数器加1,执行下一条指令。这在执行输出指令时发生。我们在这一节要讲的最后一个是跳转,有时它也被称为分支,在这里你经历一个顺序操作你分支到内存的另一部分。 The final section jump causes the program counter to be forced to a particular state rather than the next sequential address. This is the command, the instruction that says jump and then the second is the lower and the upper with … The second identifies where to jump to. The third identifies the ending address of the jump. What we've looked at here is in our representative system and we have looked at three aspects of, well three commands if you will, an instruction set. Mind you that real instruction sets will have hundreds, if not thousands of commands.

这只是其中三个的代表。

蒂姆Fiegenbaum在北西雅图社区学院