Deutsch   English   Français   Italiano  
<v1uk2q$2gcf$1@gal.iecc.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: John Levine <johnl@taugh.com>
Newsgroups: comp.arch
Subject: Re: branch address architecture, not interactive use, The Design of Design
Date: Tue, 14 May 2024 02:59:38 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <v1uk2q$2gcf$1@gal.iecc.com>
References: <v03uh5$gbd5$1@dont-email.me> <v1tsdv$3lk1j$1@dont-email.me> <v1ttqr$2095$1@gal.iecc.com> <af14e2384ff1a4a23ed1837c276da87c@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 14 May 2024 02:59:38 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
	logging-data="82319"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <v03uh5$gbd5$1@dont-email.me> <v1tsdv$3lk1j$1@dont-email.me> <v1ttqr$2095$1@gal.iecc.com> <af14e2384ff1a4a23ed1837c276da87c@www.novabbs.org>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
Bytes: 1787
Lines: 17

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.


-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly