Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Clint Kelly Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: addresses Date: Thu, 07 Aug 1997 18:08:18 -0400 Organization: Cornell University Lines: 51 Message-ID: <33EA4752.6C4A@erols.com> References: <33E68AF3.3F1E@erols.com> <33E6ED54.406D@interactive.sony.com> <33E7ACF5.702B@erols.com> <33E83EAF.170B@interactive.sony.com> NNTP-Posting-Host: dam-as4s23.erols.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01KIT (Win95; U) Developer Support wrote: > > Clint Kelly wrote: > > > > I tried what you said, and it didn't work. Here's what my batch file looks like: > > local dload base.tim 0x80090000 <-- 32x32 > > local dload boom.tim 0x80091000 <-- 384x64 > > local dload bullet.tim 0x80098000 <-- 48x16 > > local dload ship.tim 0x80099000 <-- 64x32 > > local load ny.pxe > > go > > > > I also tried subbing the second-last line with > > local load ny.pxe 0x80100000 > > and > > local dload ny.pxe 0x80100000 > > > > Every time, I get the following error: > > > > The PlayStation has generated a Bus Error on Data Load exception at instruction address > > 0x800229e8. Huh? > > > > Clint > > Hopefully your using local dload base.tim 80090000 etc, as the numbers > are automatically hex. > > You can't do local load ny.pxe 80100000 as the number is the SP address. > To load your program at a specific address it has to be done when > linking. Try gcc -o myprog myprog.c -Xlinker -Ttext -Xlinker 80100000. > > Stuart I'm using Codewarrior, so I can't specify the program address that way. Well, I've just about given up. This is really frustrating. I'm attaching a text file with my program and batch file -- sorry that it is so long, but I didn't want to snip it for fear that there's something obvious in some routine that I'm missing that's ruining my program. By fooling around with addresses, I've managed to get something to appear on the screen, but never everything, and my program usually crashes. If anyone has the time and the inclination, PLEASE try to figure out what's going on. Thanks a lot, I'm going on vacation now so everyone have a good two weeks and good luck with your programs. I'd also like to recommend SpriteLib -- it's a collection of free 2d art which is pretty decent (certainly better than anything I'm ever going to produce) and a great help to all of us who want to make games but can't draw. I have a link to it at my website, I think it's http://www.walrus.com/~ari/spritelib but I'm not sure. Clint http://www.geocities.com/SiliconValley/Vista/7813/yaroze.html