Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* This program will attemp to identify and read an on board NAND image. */
- /* Written by UNIX - LibXenon.org */
- #include <stdio.h>
- #include <input/input.h>
- #include <xenos/xenos.h>
- #include <console/console.h>
- #include <xenon_nand/xenon_config.h>
- #include <xenon_nand/xenon_sfcx.h>
- void mainInit(){
- xenos_init(VIDEO_MODE_AUTO);
- console_init();
- usb_init();
- usb_do_poll();
- }
- int main(){
- mainInit();
- sfcx_init();
- printf("Only currently supports 16MB consoles!\n");
- unsigned char *data = (unsigned char *)malloc(0x80000);
- int i;
- for(i=0x000000;i<0x0003FF;i++){
- sfcx_read_block(data, i, 0);
- while(i<0x0003FF){
- printf("Reading...\r");
- if(i=0x0003FF){
- printf("Done!\n");
- }
- }
- }
- free(data);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement