🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #15750

Re: How to launch an application

#15750
From: m radovancevich
Date: Thu, 23 Apr 1987 08:17
52 lines
2125 bytes
In article <1405@uwmacc.UUCP> pwu@uwmacc.UUCP (Peter Wu) writes:
>Can someone show me how to launch an application from an assembly
>program? Thanks.
>
>peter
>/*
>** ARPA: pwu@trochos.wisc.edu (128.105.2.200)  BITNET: WU at WISVMACC
>** UUCP: {seismo|harvard|topaz|caip|ll-xn|                      <-+   
>**        allegra|akgua|ucbvax|bellcore|ihnp4}!uwvax!trochos!pwu  |
>**                                                                |
>**   Uuhosts on this line may have faster delivery time.  --------+
>*/

There are two ways to do it.

Chain procedure

	_Chain

	(A0): pointer to the applications file name
       4(A0): integer specifying the configureation of the
	      sound & screen buffers.

	This starts up the application without doing anything to the app.
	heap, keeping the calling applications data around in the heap.

	_Launch

	same parameters

	This is the same call made by the finder when starting an application.


	the integer in 4(A0) can have the following meanings.

	4(A0)		meaning
	---------------------------------
	0		use main screen & sound buffs
	<0		use alt sound & main Screen
	>0		use alt sound & alt Screen


	Just a warning,  I think the Mac SE and The Mac II don't have
	alternate buffers so beware.



-- 
Michael P. Radovancevich     Univ. of Wisconsin - Madison C.S. Dept.
Univ. of Wisconsin - Madison Academic Computing Center (MACC) Micro Consultant
UUCP :   ...{allegra,ihnp4,seismo}!uwvax!uwmacc!miker
ARPA :   miker@unix.macc.wisc.edu
Technical Details
Message-ID: <1410@uwmacc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!uwvax!uwmacc!miker
References: <1405@uwmacc.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!uwvax!uwmacc!miker
From: miker@uwmacc.UUCP (m radovancevich)
Newsgroups: comp.sys.mac
Subject: Re: How to launch an application
Message-ID: <1410@uwmacc.UUCP>
Date: Thu, 23-Apr-87 03:17:14 EST
Article-I.D.: uwmacc.1410
Posted: Thu Apr 23 03:17:14 1987
Date-Received: Sat, 25-Apr-87 23:45:27 EST
References: <1405@uwmacc.UUCP>
Sender: news@uwmacc.UUCP
Reply-To: miker@unix.macc.wisc.edu.UUCP (m radovancevich)
Organization: UW-Madison Academic Computer Center
Lines: 52
Keywords: launch