PDA

View Full Version : 07-23-08 Update for Sub Module 0


smilingjack
07-24-2008, 03:45 AM
fireball-xb1
Advanced Coder
Update for Sub Module 0
Just trying to help Rygar.

{ // module 0 for d*sh 20080708v1 (submodules III)
switch ((A00[0]>>5)&3) {
case 0:
hw[8] = 0xFF;
break;
case 1:
hw[100] = 0xFF;
break;
case 2:
case 3:
default:
printf("unknown submodule\n");
break;
}
}

Little Kenobe
07-24-2008, 03:47 AM
this is a module0 update for cemu 1.3.4x series and works great

disregard it being module1

cyas

JT
07-24-2008, 03:59 AM
Actually, this does look like an update to submodule 1, BUT, you want to replace the module 0 text file in your source files for compiling, just like the title line at the top of the module shows.

Great work cemu coders! Not a big change here, but an important one. Super fast on getting it out too. Thank you.

Eldune
07-24-2008, 04:04 AM
this is a module0 update for cemu 1.3.4x series and works great

disregard it being module1

cyas

So SJ And LK just save this as the the modo o.imc and put in the SRC and recompile????????????????????????????????


thanks!!

JT
07-24-2008, 04:36 AM
Yes Eldune. Overwrite your module 0 with this text and recompile.

seaboard18
07-24-2008, 05:47 AM
Just to clarify some language used to describe the module. This is module0.inc. There is 4 parts to this module, which starts with case 0, case 1, case 2 and case 3. When the provider stops using a known submodule, cemu defaults to unknown submodule. Basically this is to tell you that the current submodule of module0 has failed to work with the code that was wrote for case 0, in this case.

The module is wrote in this fashion so that testers can follow how the code sections work in each case statement in relationship to the mecm40 patch that the provider streams to change the algo. For more advanced testers if you look in the cmd07.cc you can find out how the cmd07 is used to decrypt the current sequence of the current mecm40 that is being used at this moment.



if(algo==0x40) {
#include "module0.inc"
}
else if(algo==0x60) {
#include "module1.inc"

}
else {
printf("nagra2: unknown MECM algo %02x\n",algo);
return 0;
}



Other flavors of cemu use different named files to handle the algo but basically they all do the same thing in regards to the stream generated cmd07. Cemu 1.3.4X series is a very easy version of cemu for testers to understand the concepts of how to code. Advanced testers could strip this version of cemu down further and cemu would compile at 320KB. For those who would like to try, you would start by removing all the arm code that is not used anymore.

Using .inc modules makes it easy for advanced testers to learn how C & C+ applications work and can be fun to experiment with at the same time. Thanks for using cemu 1.3 series -- Its outdated and dilapidated but it has worked well for a very long time now. :) It is the very best version for 233 mmx dos computers and for those who just like to watch TV. :)

Eldune
07-24-2008, 06:09 AM
this is a module0 update for cemu 1.3.4x series and works great

disregard it being module1

cyas
Nice Post!!!!! I just try to keep UP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!