Homebrew 3DNES - NES Emulator

  • Thread starter Thread starter st4rk
  • Start date Start date
  • Views Views 308,273
  • Replies Replies 538
  • Likes Likes 47
When compiling (with CTRULIB) i get this error evrytiem:
Code:
6502core.c
arm-none-eabi-gcc -MMD -MP -MF /c/Users/Jasper/Documents/3DNES-master2/3DNES-master/build/6502core.d -g -Wall -O3 -mword-relocations -save-temps -fomit-frame-pointer -ffast-math -mfloat-abi=softfp -march=armv6k -mtune=mpcore -I/c/Users/Jasper/Documents/3DNES-master2/3DNES-master/include -IC:\devkitPro\ctrulib\libctru/include -I/c/Users/Jasper/Documents/3DNES-master2/3DNES-master/build -DARM11 -D_3DS -c /c/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/6502core.c -o 6502core.o
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/6502core.c: In function 'adc_imm':
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/6502core.c:26:2: warning: implicit declaration of function 'memoryRead' [-Wimplicit-function-declaration]
  unsigned char data = memoryRead(EA);
  ^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/6502core.c: In function 'asl_zp':
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/6502core.c:246:2: warning: implicit declaration of function 'writeMemory' [-Wimplicit-function-declaration]
  writeMemory(EA, data);
  ^
FileSystem.c
arm-none-eabi-gcc -MMD -MP -MF /c/Users/Jasper/Documents/3DNES-master2/3DNES-master/build/FileSystem.d -g -Wall -O3 -mword-relocations -save-temps -fomit-frame-pointer -ffast-math -mfloat-abi=softfp -march=armv6k -mtune=mpcore -I/c/Users/Jasper/Documents/3DNES-master2/3DNES-master/include -IC:\devkitPro\ctrulib\libctru/include -I/c/Users/Jasper/Documents/3DNES-master2/3DNES-master/build -DARM11 -D_3DS -c /c/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c -o FileSystem.o
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c:148:2: warning: "/*" within comment [-Wcomment]
  /*if (SRAM_Name != NULL) {
^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c: In function 'NES_drawROMLIST':
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c:84:3: warning: implicit declaration of function 'draw_string_c' [-Wimplicit-function-declaration]
  draw_string_c(55 + (i * 15), fileSystem.fileList[i]);
  ^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c:87:2: warning: implicit declaration of function 'draw_string' [-Wimplicit-function-declaration]
  draw_string(10, (fileSystem.cFile * 15) + 53, "->");
  ^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c: In function 'NES_drawConfigurationMenu':
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c:98:2: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  sprintf(gameFPS, "FrameSkip: %d", frameSkip);
  ^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c:98:2: warning: incompatible implicit declaration of built-in function 'sprintf'
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c: In function 'NES_LoadSelectedGame':
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/FileSystem.c:130:6: warning: unused variable 'SRAM_Size' [-Wunused-variable]
  u32    SRAM_Size = 0;
      ^
main.c
arm-none-eabi-gcc -MMD -MP -MF /c/Users/Jasper/Documents/3DNES-master2/3DNES-master/build/main.d -g -Wall -O3 -mword-relocations -save-temps -fomit-frame-pointer -ffast-math -mfloat-abi=softfp -march=armv6k -mtune=mpcore -I/c/Users/Jasper/Documents/3DNES-master2/3DNES-master/include -IC:\devkitPro\ctrulib\libctru/include -I/c/Users/Jasper/Documents/3DNES-master2/3DNES-master/build -DARM11 -D_3DS -c /c/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/main.c -o main.o
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/main.c: In function 'INIT_3DS':
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/main.c:49:2: warning: implicit declaration of function 'aptSetupEventHandler' [-Wimplicit-function-declaration]
  aptSetupEventHandler();
  ^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/main.c:52:12: error: assignment to expression with array type
  ROM_Cache    = NULL;
            ^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/main.c: In function 'NES_MAINLOOP':
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/main.c:191:6: warning: implicit declaration of function 'drawMenu' [-Wimplicit-function-declaration]
      drawMenu();
      ^
c:/Users/Jasper/Documents/3DNES-master2/3DNES-master/source/main.c:227:5: warning: implicit declaration of function 'drawBuffers' [-Wimplicit-function-declaration]
    drawBuffers();
    ^
make[1]: *** [main.o] Error 1
make: *** [build] Error 2


Hi, can you wait please ? my ctrulib there is some changes, it shouldn't work with you and i didn't commit in the last version :P(So the github version there is some code errors.).
 
I like the amount of people that cannot understand the term "Wait" is kinda depressing.

Im sure st4rk will let everyone know when you should attempt to compile or a updated downloadable version posted :P
 
  • Like
Reactions: st4rk
I like the amount of people that cannot understand the term "Wait" is kinda depressing.

Im sure st4rk will let everyone know when you should attempt to compile or a updated downloadable version posted :P

I only read that he got a .3dsx working so I though the src on github would be the most recent version and thus work with ninjhax!
 
I only read that he got a .3dsx working so I though the src on github would be the most recent version and thus work with ninjhax!


Oh well, i didn't commit it yet because i am still working, but i think it won't work with with your ctrulib because i changed the framebuffer format to 16bpp instead 24bpp, and i changed the framebuffer size too.
 
  • Like
Reactions: reprep
Hello everyone finally i finished all university exams and tomorrow i will be back to work at 3DNES.

About all people which wanna build and use 3DNES, my ctrulib has some modifications, so i will update it to the last version(it is a bit outdated) and commit on 3DNES github, it would be nice to people which wanna help on emulator dev, i will work on a site and continue the Assembly CPU and optimzations and modifications.

About the GitHub version it was just a commmit which i did when i was just programming without build(i didn't build to test), tomorrow i do the commit with last version.

I will work on an Alpha/Beta to .3dsx users(but probably will have some bug urg).
 
Looking forward to being able to give this a whirl. Just seen that you updated the your git yesterday. Is it safe to assume its ready to compile or should I wait longer?
 
Looking forward to being able to give this a whirl. Just seen that you updated the your git yesterday. Is it safe to assume its ready to compile or should I wait longer?
Not Sure




EDIT: It would help if I read more throughly....
About the GitHub version it was just a commmit which i did when i was just programming without build(i didn't build to test), tomorrow i do the commit with last version.
 
I would really like to see support for the Famicom 3D System some day, but maybe that's a huge undertaking for the few supported titles.
 
  • Like
Reactions: st4rk
Looking forward to being able to give this a whirl. Just seen that you updated the your git yesterday. Is it safe to assume its ready to compile or should I wait longer?


Not ready to build, sorry, i need finish some things of my TODO List to it :p and how i said before i changed the framebuffer format to 16bpp, so you will need edit your ctrulib to work with this format.
 
Not ready to build, sorry, i need finish some things of my TODO List to it :p and how i said before i changed the framebuffer format to 16bpp, so you will need edit your ctrulib to work with this format.

No need to apologize man. Just keep on doin what youre doin. I look forward to it!
 
  • Like
Reactions: Margen67 and st4rk
I like how all your Git commit messages are 'Update 2.0' :P

Either way, keep up the good job. If there's something I wanna suggest, it's mapping the circle pad to the NES D-pad. When I'm playing I tend to use the circle pad more than the D-pad.
 
  • Like
Reactions: Idaho
Not ready to build, sorry, i need finish some things of my TODO List to it :p and how i said before i changed the framebuffer format to 16bpp, so you will need edit your ctrulib to work with this format.
Doesn't recent versions of mainline ctrulib also support 16bit though (gfxSetScreenFormat)?
 

Site & Scene News

Popular threads in this forum