Some unlikely 2021 predictions
Some unlikely 2021 predictions
Posted Jan 12, 2021 22:43 UTC (Tue) by floppus (guest, #137245)In reply to: Some unlikely 2021 predictions by Wol
Parent article: Some unlikely 2021 predictions
Sure, you can argue it'd be more parsimonious for the two opcodes to do exactly the same thing, but the undocumented function is occasionally useful to save a byte and four clock cycles.
Whether the undocumented function was intentional or not, who knows... but if it were unintentional, you'd expect that the result would be (x<<1)|(x>>7), or (x<<1)|CF, or (x<<1)|(x&1), or something even weirder, rather than (x<<1)|1.
If you simply want your assembler to emit an SLA opcode whenever you write SLL, that's an issue with the assembler, not the hardware. ;)