www.micro-examples.com
Microcontroller circuits and source code examples
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 

The PIC16 mysterious opcodes chase is opened !

 
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> Discussion About the Examples
View previous topic :: View next topic  
Author Message
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Wed Jun 27, 2007 11:09 am    Post subject: The PIC16 mysterious opcodes chase is opened ! Reply with quote

If you have any clue to this :

http://www.micro-examples.com/public/microex-navig/doc/087-pic16-secret-opcode.html

don't hesitate to leave a message !

Thanks,
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
Ford



Joined: 15 Nov 2006
Posts: 6

PostPosted: Thu Dec 06, 2007 11:33 pm    Post subject: Four "mysterious" opcodes recognized :) Reply with quote

I have recognized 4 opcodes from "mysterious" list.
It's standard instructions (but not recommended for future use):

0062: OPTION
0065: TRIS 5
0066: TRIS 6
0067: TRIS 7

No big treasure, do you? Smile

Ford
Back to top
View user's profile Send private message Send e-mail
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Fri Dec 07, 2007 10:18 am    Post subject: Reply with quote

Hi Ford,

well spotted Very Happy

I will try this and add you to the list if it works , you will be the very first.

The big treasure if any is still to be discovered Wink
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
Ford



Joined: 15 Nov 2006
Posts: 6

PostPosted: Sat Dec 08, 2007 3:07 am    Post subject: Reply with quote

> I will try this and add you to the list if it works
Why??

That's well-known instructions, Microchip described it all in old datasheet (now only states, that it became unrecommended). You can try MPASM, it normally produce these opcodes.

Second, I tried mysterious 0x3B <literal> opcode, and it seems, that it works the same as 0x3A (XOR). Can you reproduce and confirm that?

Ford
Back to top
View user's profile Send private message Send e-mail
atferrari



Joined: 25 Dec 2007
Posts: 10
Location: Buenos Aires - Argentina

PostPosted: Thu Jan 31, 2008 12:00 pm    Post subject: Time lost for nothing Reply with quote

Hola Bruno,

This is my first post here and, might be, probably you will not appreciate this, but it comes from personal experience:

Years ago I was happy (and had the feeling of owning an incredible secret ) after running across a list of the "secret" codes of the Z80. I spent quite some time on that.

To make short a long story, the Z80 is long time gone (at least from my life) and the list is lost somewhere...

Never could do anything useful with them when actually programming the Z80.

The same happened when finding incredible things to do with not declared or "reserved" positions of RAM in the Sinclair ZX81. Just NOTHING. Mad

I asked about them (for the Z80) and in general for all micros in several forums, years ago: more or less, all coincided: Yes, they exist but who is going to use them in any formal design considering that Zilog, (or whoever) did not endorse them offcially?

In three years time I dare to say, you will find that I was right. Time is the only thing you can not recover. If you (and all the guys involved in that) finally do not agree, it's yours / their time after all. Crying or Very sad

Il-y-a meilleures chosses à faire, je crois. Quand même, plus outiles.
_________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
Back to top
View user's profile Send private message
DataMatrix



Joined: 29 Mar 2009
Posts: 1

PostPosted: Wed Apr 01, 2009 8:49 am    Post subject: Reply with quote

PICs are RISC controllers and I'm sure you all know that. All the instructions stated in the official datasheet are based on the CPU's design itself - they are all build on hardware basis with transistors and etc. I'm pretty sure, that microchip wouldn't design instructions on cpu level and then just hide them from the developers. All "hidden" instructions are just deprecated opcodes from previous designs.
_________________
/*NULL*/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> Discussion About the Examples All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group