Path: chuka.playstation.co.uk!news From: "Peter Dollochan" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: GsGetTimInfo PB Date: Tue, 9 Mar 1999 16:58:54 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 179 Message-ID: <7c3k3r$l2g17@chuka.playstation.co.uk> References: <7c3cgl$l2g16@chuka.playstation.co.uk> NNTP-Posting-Host: modem-111.sustiva.dialup.pol.co.uk X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Hi I changed a few things and it'll display a 16bit tim as far as i know you cant use loadimage to display 4/8 bit tims. The bus error could be because of the massive packet area you have assigned (10000*24) which might mean your over running the end of main ram with your program .. generate a mapfile and check, at any rate reduce this to 1000 *24 or something. Actually on re-reading your post with the program running to start with it isnt going over the end of memory so - donno :) Pete. Andrault wrote in message <7c3cgl$l2g16@chuka.playstation.co.uk>... >Hello, > > I am a new member and I have just started to try to load a >backgroundimage with LoadImage. In order not to make so much mistakes I have >read and learn the sony tutors on scee site. When I use tutor6 of chapter 2 >it works very well. But in my own code it didn't work, even if I copy/past >many parts of the tutor??? > The error occur when the program trie to read the TimInfo, these is the >error message:The PlayStation has generated a Bus Error on Data Load >exception at instruction address 0x800229e8. > And these is the line: >void ReadTIM( u_long *addr ) > > > > // skip id and initialize image structure > addr ++; > printf("getinfo \n"); > GsGetTimInfo(addr, &tim); > > I have attached my code, so If you can help me!!!! > > I now it must be a pb with C pointer and so on but as I do the same as >in the tutor I really didn't know what??? > >Thanks to all who can help! >Laurent > > > > begin 666 main.c M#0HC:6YC;'5D92 \;&EB<',N:#X-"B-I;F-L=61E(#QS=&1I;RYH/@T*(VEN M8VQU9&4@(E!!1"YH(@T*#0II;G0)"4EN:71'86UE*'9O:60I.PT*=F]I9 E$ M94EN:71'86UE*"!V;VED("D[#0II;G0)"4EN:71'#TP.PT*3TP.PT*(" @(" @(" @(" @(" @($QO M861);6%G92@FPT*&5L*3L-"B @(" @(" @(" @(" @(" @(" @?0T*"0E2 M96YD97)6:65W*"D[#0H-"@D)8V]M<'1E=7(@/2!C;VUP=&5U# P.PD)"0D)"0D)"0D)"2\O('-E="!B9R!C;&5A" ]($=S M1V5T06-T:79E0G5F9B@I.PD)"0D)"2\O(&=E="!T:&4@8W5R%TI.PD)"0D)+R\@:6YI=&EA;&ES97,@=&AE(&]R9&5R:6YG('1A8FQE#0H- M"B @(" O+R!0%TI.PD)"0D)"2\O('-T87)T(&5X96-U=&EO;B!O9B!T M:&4@9')A=VEN9R!C;VUM86YD(')E9VES=&5R960@:6X@3U0-"@D)#0I]#0H- M"@T*#0IV;VED(%)E861424TH('5?;&]N9R J861DR )#0H@"0D) M#0H)+R\@#L-"@ER96-T+GD@/2!T:6TN<'D[#0H)" ]('1I;2YC>#L-"@D@( ER96-T+GD@/2!T:6TN M8WD[#0H)(" )6YC*# I.PD-"B -"B!](" -"@`` ` end