Tulipmania
Newbie level 4
difference between 8088 and 8086 microprocessor
I needed to write a piece of code which checks the microprocessor platform it works on. The code is to tell if it is simulatd on an 8088 processor or 8086 one.
I've got an idea but I'm confused with the implementation . The key to this problem is using the instruction queue as the length varies in 8088 from 8086.
16-bit chips differ from their 8-bit bus versions in their Bus Interface Unit design. The instruction queue on 16-bit chips is 6 bytes long, while on 8-bit versions it is 4-bytes long. To test the length of instruction queue, we shall write a routine that modifies the instruction 5 bytes away from the current one (the one that actually modifies another one). The modified instruction can be NOP and it can be changed to INC register. If the instruction was executed as NOP, we have 6-byte queue (16-bit chip). If it was executed as INC, we have 4-bye queue (8-bit chip).Can anyone help me to implement this ?
another question ...after the jmp instruction the queue becomes embty.When exactly would the bytes of code accumulate in the instruction queue???
I needed to write a piece of code which checks the microprocessor platform it works on. The code is to tell if it is simulatd on an 8088 processor or 8086 one.
I've got an idea but I'm confused with the implementation . The key to this problem is using the instruction queue as the length varies in 8088 from 8086.
16-bit chips differ from their 8-bit bus versions in their Bus Interface Unit design. The instruction queue on 16-bit chips is 6 bytes long, while on 8-bit versions it is 4-bytes long. To test the length of instruction queue, we shall write a routine that modifies the instruction 5 bytes away from the current one (the one that actually modifies another one). The modified instruction can be NOP and it can be changed to INC register. If the instruction was executed as NOP, we have 6-byte queue (16-bit chip). If it was executed as INC, we have 4-bye queue (8-bit chip).Can anyone help me to implement this ?
another question ...after the jmp instruction the queue becomes embty.When exactly would the bytes of code accumulate in the instruction queue???