how many instructions can be stored in instruction queue of 8086 microprocessor?

一世执手 提交于 2019-12-11 16:47:11

问题


I think,since memory of intel microprocessors is byte organized and size of instruction queue is 4 bytes,the answer would be 4 instructions?


回答1:


The 8086 and 8088 chips have prefetch queues. These stored a number of bytes pre-fetched from the memory "ahead" of the instruction pointer (and code segment). This allows the processor to do something "useful" in what otherwise would have been an idle bus cycles.

The 8088 prefetch queue was four bytes deep. The 8086 queue was six bytes deep.

Again, these do not correspond to a set number of instructions, but a number of bytes.

So the answer to your question is as many as four (or six) (single byte) instructions, or not even one whole instruction (for the longer ones).

BTW: The 8088 had a smaller queue because its small 8 bit bus meant that there were fewer idle cycles available and a bigger queue would have slowed the process down. The 8086 can fill its queue in 3 bus cycles, the 8088 needs four cycles to fill its smaller queue.



来源:https://stackoverflow.com/questions/48437881/how-many-instructions-can-be-stored-in-instruction-queue-of-8086-microprocessor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!