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
147
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
  • The Real Jdbye @ The Real Jdbye:
    the vram is one advantage when it comes to AI but ends up being slower even with that and really AI is the only use case that needs more than 12gb vram right now
  • Psionic Roshambo @ Psionic Roshambo:
    Interesting lol
  • Psionic Roshambo @ Psionic Roshambo:
    I think I watched a video where two games at 4K where eating just over 16GB of RAM and it's the one case where the 7900XT and XTX pulled ahead (minus RTX of course)
  • Psionic Roshambo @ Psionic Roshambo:
    So my opinion is that they could age a bit better in the future, and maybe AMD will continue improving them via drivers like they tend to do. No guarantee there but they have done it in the past. Just a feeling I have.
  • The Real Jdbye @ The Real Jdbye:
    cyberpunk at 4k without DLSS/fidelityfx *might* exceed 12gb
    +1
  • The Real Jdbye @ The Real Jdbye:
    but that game barely runs at native 4k
  • Psionic Roshambo @ Psionic Roshambo:
    I think it was some newer games and probably poorly optimized PS4 or PS5 ports
  • The Real Jdbye @ The Real Jdbye:
    they definitely will age better but i feel dlss might outweigh that since it looks about as good as native resolution and much less demanding
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    When I played Cyberpunk on my old 2080 Ti it sucked lol
  • The Real Jdbye @ The Real Jdbye:
    AMD could introduce something comparable to DLSS but nvidia's got a lot more experience with that
  • The Real Jdbye @ The Real Jdbye:
    least amd 7xxx has tensor cores which the previous generations didn't so there is the potential for AI upscaling
  • Psionic Roshambo @ Psionic Roshambo:
    They have FSR or whatever it's called and yeah it's still not great
  • The Real Jdbye @ The Real Jdbye:
    so AMD seem to finally be starting to take AI seriously
  • Psionic Roshambo @ Psionic Roshambo:
    Oh yeah those new 8000 CPUs have AI cores built in that's interesting
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe they plan on offloading to the CPU?
  • Psionic Roshambo @ Psionic Roshambo:
    Would be kinda cool to have the CPU and GPU working in random more
  • Psionic Roshambo @ Psionic Roshambo:
    Tandem even
  • The Real Jdbye @ The Real Jdbye:
    i think i heard of that, it's a good idea, shouldn't need a dedicated GPU just to run a LLM or video upscaling
  • The Real Jdbye @ The Real Jdbye:
    even the nvidia shield tv has AI video upscaling
  • The Real Jdbye @ The Real Jdbye:
    LLMs can be run on cpu anyway but it's quite slow
  • BakerMan @ BakerMan:
    Have you ever been beaten by a wet spaghetti noodle by your girlfriend because she has a twin sister, and you got confused and fucked her dad?
  • Psionic Roshambo @ Psionic Roshambo:
    I had a girlfriend who had a twin sister and they would mess with me constantly.... Until one chipped a tooth then finally I could tell them apart.... Lol
  • Psionic Roshambo @ Psionic Roshambo:
    They would have the same hair style the same clothes everything... Really messed with my head lol
  • Psionic Roshambo @ Psionic Roshambo:
    @The Real Jdbye, I could see AMD trying to pull off the CPU GPU tandem thing, would be a way to maybe close the gap a bit with Nvidia. Plus it would kinda put Nvidia at a future disadvantage since Nvidia can't make X86/64 CPUs? Intel and AMD licensing issues... I wonder how much that has held back innovation.
    Psionic Roshambo @ Psionic Roshambo: @The Real Jdbye, I could see AMD trying to pull off the CPU GPU tandem thing, would be a way to...