Deutsch English Français Italiano |
<20240514123524.000038dd@yahoo.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.arch Subject: Re: branch address architecture, not interactive use, The Design of Design Date: Tue, 14 May 2024 12:35:24 +0300 Organization: A noiseless patient Spider Lines: 24 Message-ID: <20240514123524.000038dd@yahoo.com> References: <v03uh5$gbd5$1@dont-email.me> <v1tsdv$3lk1j$1@dont-email.me> <v1ttqr$2095$1@gal.iecc.com> <af14e2384ff1a4a23ed1837c276da87c@www.novabbs.org> <v1uk2q$2gcf$1@gal.iecc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Tue, 14 May 2024 11:35:26 +0200 (CEST) Injection-Info: dont-email.me; posting-host="dcb64060f415e7fe23ed2e09ecf0fa94"; logging-data="107455"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187EV+uLYrNR9PAXAM3kWKpLhSL11194xU=" Cancel-Lock: sha1:SNdw4C7Pr8Yj4LBzCzy4rRFVVbY= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) Bytes: 1974 On Tue, 14 May 2024 02:59:38 -0000 (UTC) John Levine <johnl@taugh.com> wrote: > According to MitchAlsup1 <mitchalsup@aol.com>: > > JSR PC,@(SP)+ > > > >Popped the return address off the stack, pushed another return > >address on the stack and transfers control. This is how we did > >coroutines. > > When I was teaching an operating system class in about 1977 I > challenged the class to come up with a minimal coroutine package. They > all found that pretty quickly. > > It's not very good coroutines since it just switches the return > address, not any other stack context, but it can sometimes be useful. > > I would guess that is was sometimes usefull in 1967, much less often usefull 1977 and almost never useful (on "big" general-purpose computers) in 1997 or later.