Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2015, 21:24
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,115
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 108
Thanks Rcvd at 216 Times in 124 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
Sonix SN8P2501 cpu

Does anybody know this CPU please?. The Instruction Set is similar to 8051 but the are other instructions no so familiar. I have found another manufacturer referring to it as the S8. I know it has it's roots in early tech, around 2002. Is there another cpu it could be based on that I have forgotten about?. I remember H8, SAM8, but not this one.

Main question, as ever - is there an IDA proc + cfg for it?

Git
Reply With Quote
  #2  
Old 05-14-2015, 22:19
arthur plank arthur plank is offline
Friend
 
Join Date: Jan 2005
Posts: 120
Rept. Given: 28
Rept. Rcvd 22 Times in 14 Posts
Thanks Given: 21
Thanks Rcvd at 68 Times in 29 Posts
arthur plank Reputation: 22
I downloaded a couple of datasheets for it and came across an instruction set table for it.

I don't know what it is, but it doesn't look anything like an 8051 to me.
Reply With Quote
  #3  
Old 05-14-2015, 23:38
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,115
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 108
Thanks Rcvd at 216 Times in 124 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
I know what you mean, the commands I was looking at are in most cpu's I guess. DJNZ was there and that is a bit more limited in scope. It also has IJNZ which I can only find in the SX20/28.

Git
Reply With Quote
  #4  
Old 05-15-2015, 00:12
arthur plank arthur plank is offline
Friend
 
Join Date: Jan 2005
Posts: 120
Rept. Given: 28
Rept. Rcvd 22 Times in 14 Posts
Thanks Given: 21
Thanks Rcvd at 68 Times in 29 Posts
arthur plank Reputation: 22
Detail is really sparse

It looks almost like some sort of hybrid. Some opcodes are 8051-ish and then there's RETLW, like a PIC.

Unfortunately I didn't find anything detailing instruction encoding.
Reply With Quote
  #5  
Old 05-15-2015, 05:24
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,115
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 108
Thanks Rcvd at 216 Times in 124 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
I will treat it as a new cpu and try to write a processor definition for IDA.

Git
Reply With Quote
  #6  
Old 05-26-2015, 18:21
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,115
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 108
Thanks Rcvd at 216 Times in 124 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
Don't know how true it is, but I just read this :

Quote:
SN8P2501B pin is fully compatible EM78P153S (PIC12C508)
It doesn't seem to share all mnemonics with PIC, but it could still be 100% binary compatible.

Git
Reply With Quote
  #7  
Old 05-26-2015, 19:17
arthur plank arthur plank is offline
Friend
 
Join Date: Jan 2005
Posts: 120
Rept. Given: 28
Rept. Rcvd 22 Times in 14 Posts
Thanks Given: 21
Thanks Rcvd at 68 Times in 29 Posts
arthur plank Reputation: 22
Some of the mnemonics are definitely non-PIC, but that could just be their way of trying to make it look different (as happened with the Z80/8080).

Looking again at those mnemonics and (probably) more importantly the description, it does appear to be very much like a PIC. I notice the stack only supports one level of push/pop - again, PIC like.

Did you find any instruction encoding? I'd say it would be sensible to feed your code image through a PIC disassembler and see what comes out.
Reply With Quote
  #8  
Old 05-27-2015, 19:54
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,115
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 108
Thanks Rcvd at 216 Times in 124 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
The clearest instruction encoding I've seen is in the Elan datasheet for the EM78P153S. I've not seen my cpu image yet, I'm still trying to find out how to read it and hoping the security feature isn't set. The Sonix chip needs a special reader/burner. The Elan chip I'm not sure of but think it needs dedicated hardware too. Unfortunately, the PIC equivelent is the 8 pin A variety, not the 14pin SOP B variety which my sonix chip is. New cpu's are cheap - about 25 cents on Aliexpress, but the MP-III programmer is more like 200 usd. Neither of the equivelent 14 pin cpu's are in the device list for the common GQ-4X or TL866 programmers and so far I can't find the programming or read back procedure anywhere. It looks like the manufacturers keep it proprietry to sell programmers.

Git
Reply With Quote
  #9  
Old 03-26-2018, 20:37
mr.exodia mr.exodia is offline
Retired Moderator
 
Join Date: Nov 2011
Posts: 784
Rept. Given: 492
Rept. Rcvd 1,122 Times in 305 Posts
Thanks Given: 90
Thanks Rcvd at 711 Times in 333 Posts
mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299
Very old thread, but I came across this while searching for the SN8F2288, a disassembler for that chip is available: https://github.com/vpelletier/dissn8, here is also an interesting thread that might be useful to future readers (with links to datasheets and compilers and such): https://github.com/lentinj/tp-compact-keyboard/issues/32
Reply With Quote
The Following User Says Thank You to mr.exodia For This Useful Post:
chants (03-27-2018)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 14:55.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )