Deutsch English Français Italiano |
<57dd610c0306e65a98402af098d0fa8f@www.novabbs.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: mitchalsup@aol.com (MitchAlsup1) Newsgroups: comp.arch Subject: Re: Decrement And Branch Date: Thu, 15 Aug 2024 00:15:40 +0000 Organization: Rocksolid Light Message-ID: <57dd610c0306e65a98402af098d0fa8f@www.novabbs.org> References: <v9f7b9$3qj3c$1@dont-email.me> <v9gl1b$30as$7@dont-email.me> <6fa646d11527b99c48b2f52220a18d06@www.novabbs.org> <v9hra1$csca$6@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="2605000"; mail-complaints-to="usenet@i2pn2.org"; posting-account="65wTazMNTleAJDh/pRqmKE7ADni/0wesT78+pyiDW8A"; User-Agent: Rocksolid Light X-Rslight-Posting-User: ac58ceb75ea22753186dae54d967fed894c3dce8 X-Rslight-Site: $2y$10$lKlAuSC37fAgoUthtKOmEOWg8EcSMropq5G9VWXr6x.5vCFd8i6Pq X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 2269 Lines: 33 On Wed, 14 Aug 2024 8:53:22 +0000, Lawrence D'Oliveiro wrote: > 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? I have real LOOP instructions:: ADD-CMP-BC and access to constants so one can:: ADD #{1,2,3...31}, ADD #-{1,2,3,...31}, ADD register, CMP #{1,2,3...31}, CMP #-{1,2,3...31}, CMP register, BC {EQ, NE, LE, LT, GE, GT, LO, LS, HI, HS} Any way you want.