PCM Hammer P12 development
Re: PCM Hammer fails on P12
I dont see an issue with that... maybe add a couple dozen nops inbetween it?
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

Re: PCM Hammer fails on P12
I have one out for testing that has a half dozen nop's between COP2 bset and bclr ...
Intelligence is in the details!
It is easier not to learn bad habits, then it is to break them!
If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
It is easier not to learn bad habits, then it is to break them!
If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
Re: PCM Hammer fails on P12
hmmm... wonder if theres a timer thats needing to be reset?? I feel like I came across this with the E40 stuff.... (which uses the same cpu)Gampy wrote:I have one out for testing that has a half dozen nop's between COP2 bset and bclr ...
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

- antus
- Site Admin
- Posts: 9014
- Joined: Sat Feb 28, 2009 8:34 pm
- cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B - Contact:
Re: PCM Hammer fails on P12
you might need to define them volatile so the compiler doesnt optimise them out thinking they are no-ops as you dont read them back. That will depend on compiler flags though. Disassemble your own code to see what actually came out of the compiler to validate function. Or, write the payload in assembler.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Re: PCM Hammer fails on P12
Looking at the processor data sheet, FA21 is port E output data register. Possibly if this is not being 'flicked' at the correct rate, this could be triggering something else to reset?
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

Re: PCM Hammer fails on P12
There is no entry point. The pcm calls the subrutines pointers that are at the very start of ffff2000, depending on what data is sent to pcm.Gampy wrote:In that FFFF0000 disassembly, where is the entry point, is it FF2000, so sub_FFFF2404 is the first code ran ??
Re: PCM Hammer fails on P12
Pcm uses this line extensively, which is slightly different than bset and bclr.
eori.b #$80,(byte_FFFFFA21).w
With bset and bclr there is some timer code involved and reading some registers.
eori.b #$80,(byte_FFFFFA21).w
With bset and bclr there is some timer code involved and reading some registers.
- antus
- Site Admin
- Posts: 9014
- Joined: Sat Feb 28, 2009 8:34 pm
- cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B - Contact:
Re: PCM Hammer fails on P12
eori is exclusive or, immediate. $80 is 1000 0000 eg bit 7. So each successive call like that will toggle bit 7 the other way, and leave the other bits untouched.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Re: PCM Hammer fails on P12
The timer is what Im worried about, I believe its be used in relations to interrupts firing thus might need to be manipulated?kur4o wrote:Pcm uses this line extensively, which is slightly different than bset and bclr.
eori.b #$80,(byte_FFFFFA21).w
With bset and bclr there is some timer code involved and reading some registers.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726

- antus
- Site Admin
- Posts: 9014
- Joined: Sat Feb 28, 2009 8:34 pm
- cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B - Contact:
Re: PCM Hammer fails on P12
toggling all bits on one register and bit 7 on another is consistent with other m68k pcms. I think the second one could be an external hardware watchdog. That'd make more sense than being 2 performing exactly the same function on the same silicon, so if that register maps to a hardware port it would make sense. I guess you'd be able to see it on a logic analyzer if you could connect to the right pin.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396