Changes

Jump to navigation Jump to search
8 bytes removed ,  21:49, 2 July 2021
m
Use non-retarded formatting
Line 17: Line 17:  
At the beginning of each block, there is a 4-byte value ('RNCD') which may be a Mii software version number, as it is the same across multiple Wiis and multiple Wiimotes. After these 4 bytes, there are 2 bytes which determine which slots are Mii parade slots. Left shift 0x0001 by the slot number to set it as Mii parade (hidden when viewed on the Wiimote). If a slot is empty, or filled by a non-parade Mii, its parade slot bit will be set to 0.  
 
At the beginning of each block, there is a 4-byte value ('RNCD') which may be a Mii software version number, as it is the same across multiple Wiis and multiple Wiimotes. After these 4 bytes, there are 2 bytes which determine which slots are Mii parade slots. Left shift 0x0001 by the slot number to set it as Mii parade (hidden when viewed on the Wiimote). If a slot is empty, or filled by a non-parade Mii, its parade slot bit will be set to 0.  
   −
The last two bytes of the block are a [http://www.joegeluso.com/software/articles/ccitt.htm CRC-16 CCITT] of the previous 750 bytes (polynomial 0x1021, starting value 0x0000). [http://marcansoft.com/transf/fixcrc.c C code to update CRC]
+
The last two bytes of the block are a [http://www.joegeluso.com/software/articles/ccitt.htm CRC-16 CCITT] of the previous 750 bytes (polynomial 0x1021, starting value 0x0000). [https://pastebin.com/8eTJQjgp C code to update CRC]
    
This is a short (but working) version of the CRC calculation algorithm, written in Java (should be easy to adapt for other programming languages):
 
This is a short (but working) version of the CRC calculation algorithm, written in Java (should be easy to adapt for other programming languages):
1

edit

Navigation menu