Deutsch English Français Italiano |
<v9hra1$csca$6@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.arch Subject: Re: Decrement And Branch Date: Wed, 14 Aug 2024 08:53:22 -0000 (UTC) Organization: A noiseless patient Spider Lines: 25 Message-ID: <v9hra1$csca$6@dont-email.me> References: <v9f7b9$3qj3c$1@dont-email.me> <v9gl1b$30as$7@dont-email.me> <6fa646d11527b99c48b2f52220a18d06@www.novabbs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 14 Aug 2024 10:53:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="09768462440b3e073b404311a341494e"; logging-data="422282"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nqlTfo7YWFVvblumHiZhF" User-Agent: Pan/0.159 (Vovchansk; ) Cancel-Lock: sha1:s60QiWgArBu4bKPxeaJDo6CUG5c= Bytes: 1871 On Wed, 14 Aug 2024 01:33:32 +0000, MitchAlsup1 wrote: > On Tue, 13 Aug 2024 22:00:12 +0000, Lawrence D'Oliveiro wrote: > >> On Tue, 13 Aug 2024 09:00:25 -0000 (UTC), I wrote: >> >>> However, the good old VAX (in its usual kitchen-sink fashion) had a >>> whole set of variations, including one that decremented down to -1 >>> instead of zero. And the Motorola 68000 family only had the decrement >>> down to -1 version. >> >> VAX example of how to use SOBGEQ instead of SOBGTR: >> >> movl «loop count», Rn br bottom_of_loop >> top_of_loop: >> .... body of loop ... >> bottom_of_loop: >> sobgeq Rn, top_of_loop >> >> Like I said, I wondered why this sort of thing wasn’t more common ... > > Perhaps the RISC mantra has permeated the minds of ISA designers. Would you prefer it with a decrement+separate conditional-jump instruction pair?