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
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub:
  • Sheeba- @ Sheeba-:
    I can't wait to hack my 11.00 PS4 pro
    Sheeba- @ Sheeba-: I can't wait to hack my 11.00 PS4 pro