HomeForumsWhat's newResources 
 
 
Include in XGCC?
patroclus02 - Feb 16, 2006
   patroclus02 Feb 16, 2006 
For console ROMs I'm used to take my fonts and palettes from binary files.

I always used assembler in these kind of projects.

Now I'm having a look at XGCC. As I see in some demos, all data like fonts, tiles, palette,.. must be defined as if it was to be assembled, not in pure binary format.

Code:
  
dc.w 0x000 dc.w 0xf
ff

and with a .globl directive on top, followed by a label.

I suppose the globl is to be able tu import from another C file using the extern directive. Am I right??

Ok, so, is there a way of using pure binay files for tile data and so??

This is good because you can make tiles using some tile editor like Tile Molester, and then just use it, not need of convert it to dc.w, dc.l,... and so on. Hope I explained myself...

An last question.. can you use ASM inside C code??

For example, in you main.C, inside a function, you want to do some ASM. Is it possible??

Thank you!

   ExCyber Feb 16, 2006 
You could probably link in binary files with the linker, but I wouldn't know the details...

   Kaneda Feb 17, 2006 
look at MaccerX on my website

   Raster Mar 4, 2006 
You're looking for bin2elf, which converts a binary file into an elf object, which get linked into the project. I'm not sure if XGCC includes it, but NeoDev does.

I would strongly suggest switching to NeoDev, as it works under Windows XP.

I have the linkerscripts and startup.s needed to use it.

Check here for information:

http://frogfeast.rastersoft.net/SegaCDSrc.html...

   patroclus02 Mar 8, 2006 
the link does not load. Is it wrong? or is it problem of my conection?

   Raster Mar 8, 2006 

  
Originally posted by patroclus02@Wed, 2006-03-08 @ 07:07 AM

the link does not load. Is it wrong? or is it problem of my conection?



It does load from here. Maybe it's a DNS issue of some sort.

Try http://www.rastersoft.net/frogfeast/SegaCDSrc.html...