• Does anyone else miss conditional returns?

    From Bruce Mardle@21:1/5 to All on Sun Nov 1 07:19:54 2015
    No, thought not :-)
    (I reverse-engineered a Lisp interpreter for the ZX Spectrum (Z80) in the early '80s, out of curiosity. The code for (and ...) and that for (or ...) had about 50 bytes in common... except for 1 bit: (and) had a RET Z, and (or) had a RET NZ.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mux@21:1/5 to Bruce Mardle on Fri Nov 6 14:18:11 2015
    On Sunday, November 1, 2015 at 7:19:56 AM UTC-8, Bruce Mardle wrote:
    No, thought not :-)
    (I reverse-engineered a Lisp interpreter for the ZX Spectrum (Z80) in the early '80s, out of curiosity. The code for (and ...) and that for (or ...) had about 50 bytes in common... except for 1 bit: (and) had a RET Z, and (or) had a RET NZ.)

    I liked conditional returns. Did reduce your code quite a bit when you had lots of early out branches. ARM to a certain degree used this when they did conditional instruction execution IMO.

    -Y

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)