Notices

Community Tephra Tweaking

Thread Tools
 
Search this Thread
 
Old Jan 25, 2011 | 11:13 AM
  #511  
Mitsu.kid.02's Avatar
Evolved Member
iTrader: (3)
 
Joined: Jun 2010
Posts: 1,087
Likes: 0
From: Boston MA
Originally Posted by RoadSpike
Gotcha, I've been looking at my sub routines and think I may have found a bug.

I was told by developers that if a sub routine didn't call any other sub routine it was safe to simply ignore the PC and PR register stack. I'm thinking this is probably incorrect if an interrupt happens and disrupts the PR PC stack its likely it could end up in unintended code at least for a little bit.

Its easy enough to patch this sub routine so I'm going to post a rom here and a table to just copy and it should be fixed.

I'll be curious to see if this change has any difference in the startup.

Add this to your xml to see the function code:
PHP Code:
    <table name="Move_Table_Function" address="36cf0" type="3D" level="1" scaling="Hex16">
        <table name="x" type="Static X Axis" elements="4">
        </table>
        <table name="y" type="Static Y Axis" elements="8">
        </table>
    </table> 
Rom Image:
Couldn't actually get a rom to zip enough to post here so its upload site time i guess.

http://www.megaupload.com/?d=HWFRW0KW
Great news!! i really hope this will fix things up! i cant do anything until i get home, but when i do ill paste it into the rom and pray! Do i put this code anywhere in the xml? or should it be in a cirtain section, and the ROM that you hosted, does that already have the code in it or no? cant wait to try this spike!!
Reply
Old Jan 25, 2011 | 11:20 AM
  #512  
RoadSpike's Avatar
Evolved Member
iTrader: (5)
 
Joined: Oct 2006
Posts: 3,805
Likes: 2
From: Sacramento, CA
Originally Posted by Mitsu.kid.02
Great news!! i really hope this will fix things up! i cant do anything until i get home, but when i do ill paste it into the rom and pray! Do i put this code anywhere in the xml? or should it be in a cirtain section, and the ROM that you hosted, does that already have the code in it or no? cant wait to try this spike!!
Don't get your hopes up too high lol!

But yeah that rom has the patch in it so just copy it from that rom to your old one.

XML can go anywhere just has be in between the xml tags for <rom></rom> I'd put it at the bottom it will create a new table at the bottom called "misc"
Reply
Old Jan 25, 2011 | 11:28 AM
  #513  
Mitsu.kid.02's Avatar
Evolved Member
iTrader: (3)
 
Joined: Jun 2010
Posts: 1,087
Likes: 0
From: Boston MA
Originally Posted by RoadSpike
Don't get your hopes up too high lol!

But yeah that rom has the patch in it so just copy it from that rom to your old one.

XML can go anywhere just has be in between the xml tags for <rom></rom> I'd put it at the bottom it will create a new table at the bottom called "misc"
Will do, i know not to get my hopes up to high, but im glad you looked and discovered something! Im excited to try this! ether way if it doesnt fix the problem, atleast we can norrow it down even further

Last edited by Mitsu.kid.02; Jan 25, 2011 at 11:30 AM.
Reply
Old Jan 25, 2011 | 11:30 AM
  #514  
Mitsu.kid.02's Avatar
Evolved Member
iTrader: (3)
 
Joined: Jun 2010
Posts: 1,087
Likes: 0
From: Boston MA
And whats a PR PC stack? haha
Reply
Old Jan 25, 2011 | 11:38 AM
  #515  
RoadSpike's Avatar
Evolved Member
iTrader: (5)
 
Joined: Oct 2006
Posts: 3,805
Likes: 2
From: Sacramento, CA
Originally Posted by Mitsu.kid.02
And whats a PR PC stack? haha
PR is the procedure register and the PC is the program counter. First is the return address that was called and I think this is really the issue. I'm thinking the RTS call to return isn't getting the right return address and its branched to some odd place.

The PC is the program counter and is like a stack to know how deep in the program you really are.
Reply
Old Jan 25, 2011 | 11:41 AM
  #516  
Mitsu.kid.02's Avatar
Evolved Member
iTrader: (3)
 
Joined: Jun 2010
Posts: 1,087
Likes: 0
From: Boston MA
Originally Posted by RoadSpike
PR is the procedure register and the PC is the program counter. First is the return address that was called and I think this is really the issue. I'm thinking the RTS call to return isn't getting the right return address and its branched to some odd place.

The PC is the program counter and is like a stack to know how deep in the program you really are.
I get what your saying, i love this forum i literally learn so much its awesome! Cool, so ill paste this into my ROM im using currently, and once i get home, ill post a cold log (just for fun) and another hot start log, and we will go from there!
Reply
Old Jan 25, 2011 | 12:55 PM
  #517  
link62's Avatar
Evolved Member
iTrader: (21)
 
Joined: Nov 2007
Posts: 857
Likes: 0
From: Bakersfield, CA
just tried the new rom and the car would not start at all, the fuel pump wouldnt kick on so i flashed my old one back on and the car started up just fine
Reply
Old Jan 25, 2011 | 01:02 PM
  #518  
Mitsu.kid.02's Avatar
Evolved Member
iTrader: (3)
 
Joined: Jun 2010
Posts: 1,087
Likes: 0
From: Boston MA
Originally Posted by link62
just tried the new rom and the car would not start at all, the fuel pump wouldnt kick on so i flashed my old one back on and the car started up just fine

So the attemped fix, wasnt a fix? awww man! hmm.. so are your HOT starts still tough? You said it started right up, was it cold or hot?
Reply
Old Jan 25, 2011 | 01:05 PM
  #519  
link62's Avatar
Evolved Member
iTrader: (21)
 
Joined: Nov 2007
Posts: 857
Likes: 0
From: Bakersfield, CA
Originally Posted by Mitsu.kid.02
So the attemped fix, wasnt a fix? awww man! hmm.. so are your HOT starts still tough? You said it started right up, was it cold or hot?
it was cold when i tried it and yea they still are tough i just got used to timing the push of the thorttle and turning the car on with my scaling low to get it going at warm starts
Reply
Old Jan 25, 2011 | 01:08 PM
  #520  
Mitsu.kid.02's Avatar
Evolved Member
iTrader: (3)
 
Joined: Jun 2010
Posts: 1,087
Likes: 0
From: Boston MA
Originally Posted by link62
it was cold when i tried it and yea they still are tough i just got used to timing the push of the thorttle and turning the car on with my scaling low to get it going at warm starts
What do you mean with your scaling low?
Reply
Old Jan 25, 2011 | 01:18 PM
  #521  
RoadSpike's Avatar
Evolved Member
iTrader: (5)
 
Joined: Oct 2006
Posts: 3,805
Likes: 2
From: Sacramento, CA
Originally Posted by link62
it was cold when i tried it and yea they still are tough i just got used to timing the push of the thorttle and turning the car on with my scaling low to get it going at warm starts
Damn i can't understand why it wouldn't start with that simple change..
Reply
Old Jan 25, 2011 | 01:26 PM
  #522  
RoadSpike's Avatar
Evolved Member
iTrader: (5)
 
Joined: Oct 2006
Posts: 3,805
Likes: 2
From: Sacramento, CA
Originally Posted by link62
just tried the new rom and the car would not start at all, the fuel pump wouldnt kick on so i flashed my old one back on and the car started up just fine
Think I see why I'll post a new rom but essentially i forgot something.

The code needs a 0x9 at the end of it after the 0xB

Link could you copy a 0x9 into the FFFF portion the very first one rom coming up shortly.
Reply
Old Jan 25, 2011 | 01:32 PM
  #523  
RoadSpike's Avatar
Evolved Member
iTrader: (5)
 
Joined: Oct 2006
Posts: 3,805
Likes: 2
From: Sacramento, CA
Uploaded the new file :/ stupid mistake on my part


http://www.megaupload.com/?d=WB4TJZOV
Reply
Old Jan 25, 2011 | 01:33 PM
  #524  
Mitsu.kid.02's Avatar
Evolved Member
iTrader: (3)
 
Joined: Jun 2010
Posts: 1,087
Likes: 0
From: Boston MA
Originally Posted by RoadSpike
Think I see why I'll post a new rom but essentially i forgot something.

The code needs a 0x9 at the end of it after the 0xB

Link could you copy a 0x9 into the FFFF portion the very first one rom coming up shortly.

LMK if this works, link, im anxious to try it on mine!
Reply
Old Jan 25, 2011 | 01:33 PM
  #525  
link62's Avatar
Evolved Member
iTrader: (21)
 
Joined: Nov 2007
Posts: 857
Likes: 0
From: Bakersfield, CA
Originally Posted by Mitsu.kid.02
What do you mean with your scaling low?
like my ipw is .6
Reply



All times are GMT -7. The time now is 06:01 PM.