Re: [Flashforth-devel] For-next loops - the New Design
Brought to you by:
oh2aun
From: Mikael N. <mik...@fl...> - 2015-05-28 13:05:54
|
No I do not insist. Something like this should actually fullfill a 0 based index for-next that loops N times. (FOR2): cp0 [W14] bra nz, (FOR) decf [W14], [W14] (FOR): mov [w14--], [w15++] LABEL: (NEXT): decf [--w15], [w15++] bra c, LABEL Still there is the problem of renaming FOR to ?FOR that would break existing user code. So I will call it FOR2. I think that is reasonable because most words will never need to loop 65536 times anyway. BR Mike On 28.05.2015 14:03, om1zz wrote: > Do you insist on a single asm instruction for the entire for-next > loop implementation? > Do-loop is min 30 instructions in FF. > |