Coding language
Moderator: BigEvilCorporation
-
- Very interested
- Posts: 70
- Joined: Tue Mar 06, 2007 6:30 pm
-
- Very interested
- Posts: 70
- Joined: Tue Mar 06, 2007 6:30 pm
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Thanks Edge for making pub for the minimal devkitEdge-` wrote:I've recently switched to Stef's minimalized GCC dev kit. I encourage anyone still using XGCC or anything older to do so :>, I'm enjoying it. If we can all improve on it (report bugs, submit useful functions, document use, etc) it could become a great benefit to the scene.
I'm added the function you want but i guess you did without it
hereWhere does one get that?
still missing a lot of stuff, but it's continuously progressing
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Question: how many functions are in MiniDevKit ? I collected all my ASM routines together, made them something library like and there's around 50 to 60 functions.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
C and a little bit of ASM.
C from the GenesisDev mini-kit by Stef.
ASM since now just to test.
I'm spending all my time to search and include sprites and tiles for background than making code.
I am not hurry to reach the goal that I fixed myself : make a map plan, and 2 or 3 sprites with all the movements possible.
C from the GenesisDev mini-kit by Stef.
ASM since now just to test.
I'm spending all my time to search and include sprites and tiles for background than making code.
I am not hurry to reach the goal that I fixed myself : make a map plan, and 2 or 3 sprites with all the movements possible.
Ah ? ben si ? pourquoi pas...
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
I done a converter which can convert binary file to C table (whatever type is supported) file.MG wrote:C and a little bit of ASM.
C from the GenesisDev mini-kit by Stef.
ASM since now just to test.
I'm spending all my time to search and include sprites and tiles for background than making code.
I am not hurry to reach the goal that I fixed myself : make a map plan, and 2 or 3 sprites with all the movements possible.
Recently i added 4 bits BMP support : it convert a 4 bpp BMP to a u16 table C file :
1 word : width
2 word : height
3-18 words : palette in megadrive format
19-X : 4 bpp bitmap data
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Why can't binary files be included in C like in ASM ?
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
I don't exactly understand what you want to say.TmEE co.(TM) wrote:Why can't binary files be included in C like in ASM ?
You can do :
ld main.o graphic.o where graphic.o is a binary file of a raw image and use it into your code with the extern prefix for a variable.
I already do that for the gamecube, works well.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
I meant, that for example, in stefs MDK, audio data was tored in word declarations, not just WAV or other format which is more convenient(least for me)
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
In fact i convert them to C file because i need an identifier to reference the binary data. It's possible to link binary file to your C project with the linker, but then, how you can reference them in your C code ?TmEE co.(TM) wrote:I meant, that for example, in stefs MDK, audio data was tored in word declarations, not just WAV or other format which is more convenient(least for me)
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Well, its dark land to me... no experience with C... yet. I still like ASM more.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 616
- Joined: Thu Nov 30, 2006 6:30 am
objcopy automatically creates start and end symbols when you turn a raw binary into an ELF .o based on the file name. You'll need something like this in your source:Stef wrote: In fact i convert them to C file because i need an identifier to reference the binary data. It's possible to link binary file to your C project with the linker, but then, how you can reference them in your C code ?
Code: Select all
extern unsigned char _binary_somefile_ext_start[];
extern unsigned char _binary_somefile_ext_end[];