First post, by vladstamate
- Rank
- Oldbie
Say I have this instruction:
ADD [SI], AX
How many cycles (CPU that is) should this take on a 8086, 8088, 286 and so on?
According to this it should be 16 cycles (for 808x) + memory access. I am looking for the "+memory access" part. Say I have 200ns memory (typical of an IBM XT machine), how long does it take for each byte to be read? I need to read 2 bytes (at [SI]) and then write 2 bytes (again at [SI]) for a total of 4 bytes transaction. Given the memory timing, is this basically 4 cycles? Or is it 2 in case of 8086 (since 16bit bus)?
I am basically looking at a relationship between memory timing and bus/cpu cycles per byte read. I am looking to extend this formula to 286 and 386 which my emulator supports.
YouTube channel: https://www.youtube.com/channel/UC7HbC_nq8t1S9l7qGYL0mTA
Collection: http://www.digiloguemuseum.com/index.html
Emulator: https://sites.google.com/site/capex86/
Raytracer: https://sites.google.com/site/opaqueraytracer/