Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!nbires!hao!husc6!cmcl2!rutgers!mcnc!ece-csc!uvacs!rlc From: rlc@uvacs.CS.VIRGINIA.EDU (Robert L. Chase) Newsgroups: comp.lang.modula2 Subject: procedure parameters and TRANSFER Message-ID: <1966@uvacs.CS.VIRGINIA.EDU> Date: Sat, 12-Sep-87 21:41:04 EDT Article-I.D.: uvacs.1966 Posted: Sat Sep 12 21:41:04 1987 Date-Received: Sun, 13-Sep-87 20:02:44 EDT Organization: U.Va. CS Department, Charlottesville, VA Lines: 30 Keywords: OS, TRANSFER In setting up coroutines in Modula2, the NEWPROCESS procedure requires that the PROC (coroutine) be a parameterless procedure. Can anyone assist me with why that is the case? What is the underlying mechanism that requires this? I ask, since in my sabbatical work (beginnings of OS research) Bob Cook at UVA sets up coroutines etc as procedures that have one integer parameter, then doesn't use NEWPROCESS and TRANSFER, instead (since we were on Liliths at Virginia), using some of the procedures and CODE procedures that Wirth published. I need to implement same OS, and want to do it on a MAC (MAC II) and thus need to do some assembly lang stuff to do a NEWPROCESS and TRANSFER (or do I?). Any assistance would be appreciated. ~ ~/sign ---- Robert L. Chase INTERNET: rlc@uvacs.cs.virginia.edu Director of Academic Computing Computer Center Sweet Briar College UUCP: ...!mcnc!uvacs!rlc PO BOX AK ...!cbosgd!uvacs!rlc Sweet Briar, VA 24595 (804) 381-6232 ~p A -- Robert L. Chase, PO Box AK, Sweet Briar College, Sweet Briar, VA 24595 INTERNET: rlc@uvacs.cs.virginia.edu UUCP: ...!mcnc!uvacs!rlc or ...!cbosgd!uvacs!rlc