It has been long time since I have programmed BF asm, but IIRC RTS returns
to address pointed by register RETS, while the longer version fetches the
return address from memory. Functionally they seem identical.
All I can think of is that the the longer version migth not issue a pipeline
stall as the memory fetch for the return address is done earlier and stored
in P0. This is only a guess though.. perhaps you should benchmark the two
version.
--
----
Jani Huhtanen
Tampere University of Technology, Pori
Reply by jenikh●July 24, 20062006-07-24
>
> your solution is one cycle faster. ;-)
>
>WD
>--