Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!csustan!rayz From: rayz@csustan.UUCP (R. L. Zarling) Newsgroups: comp.sys.cbm Subject: Re: C-Power bug ??? Message-ID: <320@csustan.UUCP> Date: Mon, 8-Dec-86 14:57:27 EST Article-I.D.: csustan.320 Posted: Mon Dec 8 14:57:27 1986 Date-Received: Mon, 8-Dec-86 21:27:45 EST References: <1688@i.cc.purdue.edu> Reply-To: rayz@csustan.UUCP (R. L. Zarling) Distribution: net Organization: CSU, Stanislaus; Turlock, California Lines: 17 Keywords: C-Power, bug In article <1688@i.cc.purdue.edu> aig@i.cc.purdue.edu (Doug Crabill) writes: > > I am writing a game in C-Power (please hold all applause until the end >of the article) and have run into a bit of a problem. > ... > joy1 = 56320; /* set joyport location */ > ... > j = 15 - (*joy & 15); Just guessing, but I noticed you have not set any bank number (i.e. memory configuration). Your references *pointer could be hitting either bank0 ram, bank1 ram, i/o devices, etc. My guess is that C-Power, by default, hits some kind of RAM; thus, your reference to *joy is not reading an i/o device at all. Using the supplied peek() and poke() gives you the option of specifying a bank number to control this. By the way, there was some discussion that either peek() or poke(), as supplied, may be buggy. In any case, there is a revised version on the C-Power bbs.