[О блоге] [наверх] [пред] [2023-11-20 22:22:27+03:00] [f73e2dc81e69ca958737c84d9c891053b7237f33]
Темы: [hard]

8088 vs Z80 vs 6502

https://trixter.oldskool.org/2011/06/04/at-a-disadvantage/
https://groups.google.com/g/comp.os.cpm/c/OG4tTERPtto/m/yC5iUh79CQAJ
https://news.ycombinator.com/item?id=38345053
https://retrocomputing.stackexchange.com/questions/5748/comparing-raw-performance-of-the-z80-and-the-6502
5MHz Intel 8088 за тысячи долларов с мегабайтным адресным пространством
был ли быстрее Commodore 64 с 64KB адресами, 1MHz процессором и на
порядок дешевле? Пишут, что запросто:

    Let’s illustrate this with a fun example:  Rotating a byte of memory
    once using ROR (rotate right). We’ll keep it fair by treating the PC
    like it only has a single 64K segment of memory. First, the 6502
    version using ROR:

   Cycle                       Operation
   1     fetch opcode, increment program counter
   2     fetch low byte of address, increment program counter
   3     fetch high byte of address, increment program counter
   4     read from effective address
   5     write value back and do operation
   6     write the new value to the effective address

   6 cycles. Now the 8088 version:
   Cycle                                      Operation
   1     ROR BYTE PTR [1234],1 expands to “D0 0E 34 12” so let’s get to fetching the opcode:
   2     (still fetching…)
   3     (still fetching…)
   4     (still fetching…)
   5     (still fetching…)
   6     (still fetching…)
   7     (still fetching…)
   8     (still fetching…)
   9     Fetch lowbyte of address
   10    (still fetching…)
   11    (still fetching…)
   12    (still fetching…)
   13    Fetch hibyte of address)
   14    (still fetching…)
   15    (still fetching…)
   16    (still fetching…)
   17    Perform operation, which takes 15 cycles + EA calculation (6)
   …     …
   37    Final cycle of calculation, we’re done, yay :-/

Я вот никогда не задумывался кто из них быстрее. Ну типа там 5MHz, а тут
1MHz. Само собой я в курсе про стоимость обращения к памяти, размерности
шин, регистров, RISC/CISC и всё вот это. Просто никогда не задумывался о
том, что в ряде задач такой дорогой и современный новенький ПК (на тот
момент) мог всё равно уступать в ряде вычислительных задач.

    [оставить комментарий]