[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [Atari-coldfire] Patching old software for the new LineA init / stack question



2011/7/25 Vincent Rivière <vincent.riviere@freesbee.fr>:
> m0n0 wrote:
>>
>> 2. Why do we need:
>> lea -24(sp),sp
>> movem.l d0-d2/a0-a2,(sp)
>> and not just...:
>> movem.l d0-d2/a0-a2,-(sp)
>
> Because "movem ...,-(...)" is not supported on ColdFire!
> movem can't be used with the "-(...)" predecrementation operand.
> Not a big issue, you just have to manually predecrement the stack before
> movem.
> This is one of the major differences between 680x0 and ColdFire.
>
if there are still assemblers with source access, does it make sense
to ad above runtime fixes to generate CF safe binaries (maybe same
similar for Line-A calls too) ?

How does Henks compiler handle this inline ASM (when producing CF binaries)?

Paul