3 ms·
the 8086 also has a specialized decrement counter and loop instruction, but instead of calling it 'ccs' it's called 'loop' specialized loop instructions are pr
by kragen 3y ago
the 8086 also has a specialized decrement counter and loop instruction, but instead of calling it 'ccs' it's called 'loop'
specialized loop instructions are pretty common actually
- HarHarVeryFunny 3y agoI think in a large CISC instruction set it's less surprising to see specialized instructions like this, but it stands out as a rather specific design choice in something like SWEET16 that has such a minimal instruction set, and doesn't even have an indirect load/store without an increment/decrement (i.e., using C syntax, it let's you do a = * r++, but NOT a = * r).
- wk_end 3y agoThe 68000 has it too (DBRA).
- tasty_freeze 3y agoThe Z80 has DBNZ (decrement and branch if not zero), but the counter register (B) was only 8 bits wide.