Path: utzoo!attcan!uunet!lll-winken!lll-lcc!pyramid!cbmvax!joe From: joe@cbmvax.UUCP (Joe O'Hara) Newsgroups: comp.sys.cbm Subject: Re: Loading machine language files. Keywords: ML loaded at $C000 Message-ID: <3994@cbmvax.UUCP> Date: 10 Jun 88 13:58:30 GMT References: <5449@ihlpg.ATT.COM> Reply-To: joe@cbmvax.UUCP (Joe O'Hara) Organization: Commodore Technology, West Chester, PA Lines: 24 In article <5449@ihlpg.ATT.COM> mnelson@ihlpg.ATT.COM (Nelson) writes: >I am writing a program that uses a ML routine at $C000. I know I have >seen programs that use LOAD statments to load other parts of the >program and then jumps off to them (boot programs, etc). However, When the load is complete, your program is essentially restarted. Since your data areas are unaffected by this, the proper way to accomplish your goal is as follows: 5 IF R = 1 THEN 20 (Did I go thru line 10 already?) 6 R = 1 (This is the first time thru) > 10 LOAD "ML PROG AT $C000",8,1 > 20 POKE THE CIA REGS > 30 OTHER BASIC STUFF > 40 END > -- ======================================================================== Joe O'Hara || Comments represent my own opinions, Commodore Electronics Ltd || not my employers. Any similarity to Software QA || to any other opinions, living or dead, || is purely coincidental. ========================================================================