Path: news.weeg.uiowa.edu!news.uiowa.edu!hobbes.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!europa.eng.gtefsd.com!library.ucla.edu!nntp.ucsb.edu!mcl!uerics From: uerics@mcl.ucsb.edu (Eric Shepherd) Newsgroups: comp.sys.apple2.programmer Subject: Re: Wrtiing a Init Date: 17 Feb 1994 20:32:41 GMT Organization: University of California, Santa Barbara Lines: 30 Message-ID: <2k0k99$rmd@hub.ucsb.edu> References: <2jv99t$i0f@ausom.ausom.oz.au> NNTP-Posting-Host: mcl.ucsb.edu Writing in init is simple: * * Init sample code * init start * put init's code here rtl end That was ORCA/M format code. That is a complete, valid INIT that does absolutely nothing. Just insert your code in the middle. Environment: The data bank register is undefined, so you need to save it when your INIT is called and restore it just before the RTL. The Accumulator contains your INIT's user ID. The direct page register points to a direct page you can use freely. That's it. -- sheppy@aol.com |-------------- Eric Shepherd ---------------- uerics@mcl.mcl.ucsb.edu |Programming Law #18: Programmers need lots of E.SHEPHERD@genie.geis.com|love and attention. Give them credit for sheppy@cs.ucsb.edu |their work. [Apple II Forever!]