Robert Riches <spam…@jacob21819.net> writes:
> On 2026-11-06, Peter Flass <Pet…@Iron-Spring.com> wrote:
>> On 11/5/26 16:17, Lawrence D’Oliveiro wrote:
>>> On Thu, 5 Nov 2026 22:24:10 +0100, Carlos E. R. wrote: >>>
>>>> The 68000 had a beautiful assembler. Or rather, a beautiful >>>> instruction set.
>>> >>> Definitely inspired by the PDP-11. Pity it was big-endian. Also, the >>> division into “address” versus “data” registers did seem to be a step >>> backwards. >>> >>> Here’s one trivia question: the decrement-and-branch instruction would >>> fall out of the loop when the count reached -1, not 0 as the >>> equivalent instruction in nearly every other computer architecture >>> did. Why?
>> >> Big-endian is the only true way.
> > It is if you insist on string comparison and integer comparison > being identical or being able to read digits left to right and > put them in increasing memory addresses.
General-purpose multiple precision integers commonly use a little-endian representation (i.e. least significant word first, but with native endianness for the individual words). There’s an obvious performance justification for this: when the value of an integer grows and it needs more words, it avoids the need to shuffle everything up by one. (If the maximum size is known in advance, and not unreasonably large, then this justification goes away, of course.) Readability is a pretty good argument for big-endian representations, of course, if you spend a lof of time reading hex dumps. The original sin there was the failure to flip the conventional ordering of digits when Arabic numerals were adopted from the right-to-left Arabic script into left-to-right European scripts.