On 09/03/18 16:14, Dennis Lee Bieber wrote:
> On Fri, 9 Mar 2018 14:13:40 +0000, bartc declaimed the
> following:
>
>
>>
>> Somewhat tidier than that for x64, which varies between Windows and
>> Linux. Windows has the simpler one, and passes the first four arguments
>> in rcx, rdx, r8 and r9.
>>
>> So not only are the registers not consecutive, but they couldn't even
>> come up with a consistent naming scheme for the registers.
>>
>
> CX and DX are likely historical carry-overs from the 8008/8080 (A, C,
> D, H, L, with an X to indicate a wide register).
>
>
Nack when I was writing assemble fr 8086, There wer AX, BX, CX, abd DX.
AX was the accumulator and ewas used as a return register.
There were more registers intended to be used as memory pointers, but
not one of the compilers I used then passed parameters except on the stack.
Indeed I am not sure that early versions of gcc did either.
--
“it should be clear by now to everyone that activist environmentalism
(or environmental activism) is becoming a general ideology about humans,
about their freedom, about the relationship between the individual and
the state, and about the manipulation of people under the guise of a
'noble' idea. It is not an honest pursuit of 'sustainable development,'
a matter of elementary environmental protection, or a search for
rational mechanisms designed to achieve a healthy environment. Yet
things do occur that make you shake your head and remind yourself that
you live neither in Joseph Stalin’s Communist era, nor in the Orwellian
utopia of 1984.”
Vaclav Klaus
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|