Homebrew gbaemu4ds: GBA emulator for DS(i) (DSi Entry)

Is the graphic better if you use the sc Version and the upper screen on a 3DS

  • I can't do that (have no 3DS) (have not tested that)

    Votes: 110 40.3%
  • Yes

    Votes: 48 17.6%
  • No

    Votes: 26 9.5%
  • I don't know

    Votes: 89 32.6%

  • Total voters
    273

ichichfly

Well-Known Member
OP
Member
Joined
Sep 23, 2009
Messages
619
Trophies
1
XP
1,076
Country
Gambia, The
Patrick1704 said:
ichichfly said:
update: someone asked me about the current process so here ist the link to the github https://github.com/ichfly/gbaemu4DS the difference between the github Versions is that the github is untested and contain test code that may crash a real game as soon as ther is an new stabil version of the gbaemu i will update them here

ADD: hyperspeedup is currently not running on real DS(i) devices.

Patrick1704 said:
can anyone help me:

when i will load the r5 fix 4 it doesn't work.
but when i load it with the homebrew menu it work.

but i will play it with dsilink.
but there i can not start it with homebrew menü.

Please help me!

Dose the card support nitrofs?

It is a Exploit using My Cooking Coach (Game)

And i have found out that nitrofs don't work
frown.gif


Is it able to build in a gba game into the emulator without use nitrofs?

it is possible but i don't add this yet. I will try to add this soon.
 

ichichfly

Well-Known Member
OP
Member
Joined
Sep 23, 2009
Messages
619
Trophies
1
XP
1,076
Country
Gambia, The
Patrick1704 said:
hi,
when i download and try to compile the emulator source from https://github.com/ichfly/gbaemu4DS i get the error:

QUOTE said:
c:/arm9/source/GBA.cpp:39:27: fatal error: puzzleorginal.h: No such file or dire
ctory

From whre i can get the file?
I think it is a lib for the example puzzle gba game, right?

ups forgot to update you can generate the puzzleorginal.h and puzzleorginal.c by renaming your gba file to puzzleorginal and than use the (devkitPro\devkitARM\bin\)raw2c.exe to convert (the input file must be called puzzleorginal) it than copy it (puzzleorginal.h and puzzleorginal.c)to the source folder

ADD: done a little update to the github
 

Patrick1704

Well-Known Member
Member
Joined
Oct 4, 2010
Messages
102
Trophies
0
Website
dsprojekts.tk
XP
31
Country
Australia
thanks, but i have a problem:

i have trimmed a Pokemon gba rom to a size of 9 mb (i have deleted the fffff on the end of the file with a Hex editor, the game still worked)

then i have used the tool raw2c.exe
but one of the two files have 94 mb oO

when i will compile it, i get this error:

QUOTE said:
puzzleorginal.c
arm-eabi-gcc -MMD -MP -MF /c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d31
56/hwspeedup/build/puzzleorginal.d -g -Wall -O5 -fomit-frame-pointer -ffast-math
-mthumb -mthumb-interwork -march=armv5te -mtune=arm946e-s -iquote /c/NDS/ichfly
-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/include -I/c/devkitPro/lib
nds/include -I/c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup
/build -DARM9 -c /c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspee
dup/source/puzzleorginal.c -o puzzleorginal.o

cc1.exe: out of memory allocating 268439551 bytes
make[1]: *** [puzzleorginal.o] Error 1
make: *** [build] Error
2

Can anyone help me?
 

ichichfly

Well-Known Member
OP
Member
Joined
Sep 23, 2009
Messages
619
Trophies
1
XP
1,076
Country
Gambia, The
Patrick1704 said:
thanks, but i have a problem:

i have trimmed a Pokemon gba rom to a size of 9 mb (i have deleted the fffff on the end of the file with a Hex editor, the game still worked)

then i have used the tool raw2c.exe
but one of the two files have 94 mb oO

when i will compile it, i get this error:

QUOTE said:
puzzleorginal.c
arm-eabi-gcc -MMD -MP -MF /c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d31
56/hwspeedup/build/puzzleorginal.d -g -Wall -O5 -fomit-frame-pointer -ffast-math
-mthumb -mthumb-interwork -march=armv5te -mtune=arm946e-s -iquote /c/NDS/ichfly
-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/include -I/c/devkitPro/lib
nds/include -I/c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup
/build -DARM9 -c /c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspee
dup/source/puzzleorginal.c -o puzzleorginal.o

cc1.exe: out of memory allocating 268439551 bytes
make[1]: *** [puzzleorginal.o] Error 1
make: *** [build] Error
2

Can anyone help me?

hm try to close all open programms or use a smaler rom or disable the -O5 flag in the make file

add: may i can edit it so it use bin2s that use less memory to compile
 

Patrick1704

Well-Known Member
Member
Joined
Oct 4, 2010
Messages
102
Trophies
0
Website
dsprojekts.tk
XP
31
Country
Australia
ichichfly said:
hm try to close all open programms or use a smaler rom or disable the -O5 flag in the make file

add: may i can edit it so it use bin2s that use less memory to compile

i have closed all programms and disabled the -05 flag but nothing worked
frown.gif
 

Fishaman P

Speedrunner
Member
Joined
Jan 2, 2010
Messages
3,323
Trophies
1
Location
Wisconsin
Website
twitch.tv
XP
2,205
Country
United States
Patrick1704 said:
ichichfly said:
hm try to close all open programms or use a smaler rom or disable the -O5 flag in the make file

add: may i can edit it so it use bin2s that use less memory to compile

i have closed all programms and disabled the -05 flag but nothing worked
frown.gif
Maybe try loading the ROM normally instead of bootstrapping it?
 

ichichfly

Well-Known Member
OP
Member
Joined
Sep 23, 2009
Messages
619
Trophies
1
XP
1,076
Country
Gambia, The
Patrick1704 said:
ichichfly said:
hm try to close all open programms or use a smaler rom or disable the -O5 flag in the make file

add: may i can edit it so it use bin2s that use less memory to compile

i have closed all programms and disabled the -05 flag but nothing worked
frown.gif

OK try that deleate the puzzleorginal.c file and use the (devkitPro\devkitARM\bin\)bin2s.exe this way bin2s.exe >

than copy the in the source folder.

ADD: i hope the loader can load bigger files than 4 MB
 

Patrick1704

Well-Known Member
Member
Joined
Oct 4, 2010
Messages
102
Trophies
0
Website
dsprojekts.tk
XP
31
Country
Australia
musst i rename the file to anythink?
i have tried to rename the file to puzzleorginal.h and puzzleorginal.c but there came an error.

And when i put the file named outputfile.s there came the error " puzzleorginal.h not found"
 

ichichfly

Well-Known Member
OP
Member
Joined
Sep 23, 2009
Messages
619
Trophies
1
XP
1,076
Country
Gambia, The
ups my bad before you convert it it must be renamed to puzzleorginal

than copy the puzzleorginal.h from the raw2c in the source folder and outputfile.s from bin2s too.
 

Patrick1704

Well-Known Member
Member
Joined
Oct 4, 2010
Messages
102
Trophies
0
Website
dsprojekts.tk
XP
31
Country
Australia
ichichfly said:
ups my bad before you convert it it must be renamed to puzzleorginal

than copy the puzzleorginal.h from the raw2c in the source folder and outputfile.s from bin2s too.

Ok, have i understood it correctly?

1. use raw2c for the gba file and copy the puzzleorginal.h file into the source folder
2. use bin2s and copy the created outputfile.s into the source folder
3. compile it

?

When i make it so i get this messages/errors:

QUOTEC:\NDS\ichfly-gbaemu4DS-51d3156\ichfly-gbaemu4DS-51d3156\hwspeedup>make
GBA.cpp
arm-eabi-g++ -MMD -MP -MF /c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d31
56/hwspeedup/build/GBA.d -g -Wall -fomit-frame-pointer -ffast-math -mthumb -mthu
mb-interwork -march=armv5te -mtune=arm946e-s -iquote /c/NDS/ichfly-gbaemu4DS-51d
3156/ichfly-gbaemu4DS-51d3156/hwspeedup/include -I/c/devkitPro/libnds/include -I
/c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/build -DARM9
-fno-rtti -fno-exceptions -c /c/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51
d3156/hwspeedup/source/GBA.cpp -o GBA.o
In file included from c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/h
wspeedup/source/GBA.cpp:38:0:
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/puzzle
orginal.h:11:18: error: invalid suffix "_size" on integer constant
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:3947:8: warning: "/*" within comment
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:4125:12: warning: "/*" within comment
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:4132:21: warning: "/*" within comment
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:4477:5: warning: "/*" within comment
In file included from c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/h
wspeedup/source/GBA.cpp:38:0:
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/puzzle
orginal.h:10:28: error: expected unqualified-id before numeric constant
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/puzzle
orginal.h:11:18: error: expected unqualified-id before numeric constant
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'int dataTicksAccess16(u32)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:568:61: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'int dataTicksAccess32(u32)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:589:61: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'int dataTicksAccessSeq16(u32)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:610:61: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'int dataTicksAccessSeq32(u32)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:631:61: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'bool CPUWriteMemState(char*, int)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:912:54: warning: deprecated conversion from string constant to 'char*'
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'bool CPUReadMemState(char*, int)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:1091:54: warning: deprecated conversion from string constant to 'char*'
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'bool CPUWritePNGFile(const char*)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:1394:1: warning: no return statement in function returning non-void
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p: In function 'int CPULoadRom(const char*, bool)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/GBA.cp
p:1625:14: error: 'puzzleorginal' was not declared in this scope
In file included from c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/h
wspeedup/source/GBA.cpp:3965:0:
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h: In function 'void CPULoop(int)':
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:2490:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:2516:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3567:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3592:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3622:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3648:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3677:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3706:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3735:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3764:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3796:66: warning: operation on 'busPrefetchCount' may be undefined
c:/NDS/ichfly-gbaemu4DS-51d3156/ichfly-gbaemu4DS-51d3156/hwspeedup/source/arm-ne
w.h:3827:66: warning: operation on 'busPrefetchCount' may be undefined
make[1]: *** [GBA.o] Error 1
make: *** [build] Error 2
 

ichichfly

Well-Known Member
OP
Member
Joined
Sep 23, 2009
Messages
619
Trophies
1
XP
1,076
Country
Gambia, The
squirrelman10 said:
so question does this emulator work yet on game roms??

yes it can run roms as long as the used space in the rom (some roms are 4MB but only use 2MB) is less than the size of the malloc the max size you can malloc in DS mode is a little bit more than 2 MB in dsi mode a little bit more than 14 MB

@Patrick1704 hm ok i have found a way to convert the files direct at every compile i will update the git soon.
 

ichichfly

Well-Known Member
OP
Member
Joined
Sep 23, 2009
Messages
619
Trophies
1
XP
1,076
Country
Gambia, The
I have updated the git now you can yust place the gbarom as puzzeloriginal.bin in the data folder and compile

ADD: there already is an puzzeloriginal.bin.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @mthrnite, Cheetah Girls, the sequel to Action 52's Cheetah Men.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Pokemon Black I played that one a lot
  • K3Nv2 @ K3Nv2:
    Honestly never messed with Pokémon on ds much
  • mthrnite @ mthrnite:
    I played pokemon once, was bored, never tried again
  • Psionic Roshambo @ Psionic Roshambo:
    Oh Dragon Quest IX
  • K3Nv2 @ K3Nv2:
    Spent like 5 hours on switch one never touched it again
  • Psionic Roshambo @ Psionic Roshambo:
    Sentinel of the stary skies
  • K3Nv2 @ K3Nv2:
    Ds is 20 years old this year
  • Psionic Roshambo @ Psionic Roshambo:
    So MJ no longer wants to play with it?
  • K3Nv2 @ K3Nv2:
    He put it down when the 3ds came out
  • SylverReZ @ SylverReZ:
    @K3Nv2, RIP Felix does great videos on the PS3 yellow-light-of-death.
  • Jayro @ Jayro:
    Eventhough the New 3DS XL is more powerful, I still feel like the DS Lite was a more polished system. It's a real shame that it never got an XL variant keeping the GBA slot. You'd have to go on AliExpress and buy an ML shell to give a DS phat the unofficial "DS Lite" treatment, and that's the best we'll ever get I'm afraid.
    +1
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
    Veho @ Veho: +1