This topic is intended to collect information about programming the SH3 processor in assembler and using the calculators
full capabilities. Links, tips and code snippets are welcome.
I don't want this programming to be a secret only a few can do. Though the concerns of code stealing are valid I would like to
ask anyone to give credit where credit is due and this does not only mean when you use someones code but also when you
use information that were discovered by someone else. Don't be so stingy with credit! It costs you nothing, but returns you respect
and more information that could be usefull in the future.
For a starter: The SH3 is a pretty wicked architecture with its delayed branching/jumping and its strange move commands.
But here is a good read to get into it:
http://www.elenota.p...0317_sh_3sm.pdf
I already found out, that the assembler as does support the SH3 CPU. Here is the link to documentation and download:
http://john.ccac.rwt...hen.de:8000/as/
I also tried to write a disassembler but due to the strange nature of the CPU it is quite difficult to calculate branches and follow the program flow. For now it can only decode a single instruction. You enter the 16-bit hex code and it returns you the corresponding command.
It also tries to deode binary files but it is not very successfull as soon as it comes to branchin / jumps

If there is interrest in it I can publish it (including the sources).
Also I will try to write a headder creator during the next few days so that you can upload your files to the calculator. The headdermaker included with the SDK requires some strange files not needed in my opinion.
So let the games begin! Please help us in creating the best add ins possible.
(even if you don't use external assemblers, the inline assembler would also be nice to get to work, but it doesnt seem to want to work at the moment... the #pragma inline_asm (function) statement does not seem to work with the SDK

... hope to hear from all of you soon...