Homebrew 3DNES - NES Emulator

st4rk

nah
OP
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
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.).
 

Kouen Hasuki

Coffee Addict
Member
Joined
Jan 9, 2013
Messages
1,387
Trophies
1
Age
40
Location
Behind you
XP
681
Country
Norway
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

Jasper Peters

Well-Known Member
Newcomer
Joined
Jul 12, 2014
Messages
45
Trophies
0
Age
118
Location
Leiden, Netherlands
XP
148
Country
Netherlands
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!
 

st4rk

nah
OP
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
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

st4rk

nah
OP
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
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).
 

MajinCubyan

The Funky Super Saiyan
Member
Joined
Nov 24, 2014
Messages
783
Trophies
2
Age
35
Location
Orre
XP
2,124
Country
United States
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?
 

Melon__Bread

~It's A Magik~
Member
Joined
Dec 9, 2013
Messages
833
Trophies
0
Age
31
XP
938
Country
United States
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.
 

st4rk

nah
OP
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
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.
 

MajinCubyan

The Funky Super Saiyan
Member
Joined
Nov 24, 2014
Messages
783
Trophies
2
Age
35
Location
Orre
XP
2,124
Country
United States
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

Arisotura

rise of melonism
Member
Joined
Dec 5, 2009
Messages
839
Trophies
1
Age
30
Location
center of the Sun
Website
kuribo64.net
XP
2,498
Country
France
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

xantoz

Well-Known Member
Newcomer
Joined
Nov 28, 2014
Messages
73
Trophies
0
Age
33
XP
100
Country
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

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: yawn