Path: chuka.playstation.co.uk!news From: "Alex Herbert" Newsgroups: scee.yaroze.beginners Subject: Re: memory overwrite Date: Sun, 21 Feb 1999 23:59:36 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 50 Message-ID: <7aq716$erp22@chuka.playstation.co.uk> References: <7apfkd$erp17@chuka.playstation.co.uk> NNTP-Posting-Host: th-usr02-17.ndirect.co.uk X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Nigel Critten wrote in message <7apfkd$erp17@chuka.playstation.co.uk>... >Hi, > >How can I stop my program overwriting my data, > >at the moment my *.sio is like this > >------------------------------------------------------------ >local dload data\font1.tim 80091000 >local load ny.pxe >go >------------------------------------------------------------ > >all the other tutorials I've looked at do a similar thing >without their data being overwritten? > >BTW this is using codewarriors PSComUtil as SIOCONS doesn't work on my NT >system. > Try loading your data at a higher address. At the moment you're loading your data only 4Kb beyond the default program start address (80090000). An alternative is to change the porgram address and load it beyond the data, which will make sure you wont have to move your data as your program grows. (Check out the linker settings for your CW project). >Also with regard ordering tables and such, I've allocated a PACKET of 128000 >for the workspace and an ordertable with a length of 9 (it started out at 1 >and I've increased it to try and fix this problem) the problem is, if I add >a sprite to the OT fine, if I add a line or box to the OT fine, if I add >both a sprite & a line to the OT it crashes (just pops up a black screen - >it's cleared to blue BTW) > Strange. Sounds like you're not setting up your OTs and packet areas correctly. Post us your source code and I'll take a look. ( either here or to my email: aherbert@ndirect.co.uk ) >This is beginning to annoy me, I've never had so many problems programming >any other system before. > >TIA >Nigel > >