gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Quick HAM question

#1212 - Shawn - Wed Jan 15, 2003 6:55 pm

I just started using the HAM environment/libraries last night. I did a quick test just to see if it was working. I had it print a small message, a hello world just for testing. When I ran

make all

everything compiled well, but if I tried to run the ROM in BoycottAdv, it would not work. If I ran

make vba

of course it would come up in VBA emulator just fine. My question is how do I compile a rom that would work outside of the HAM environment? Probably something easy, but hey I am a beginner :)

Thanks

#1214 - tepples - Wed Jan 15, 2003 7:05 pm

Shawn wrote:
I just started using the HAM environment/libraries last night. I did a quick test just to see if it was working. I had it print a small message, a hello world just for testing. When I ran

make all

everything compiled well, but if I tried to run the ROM in BoycottAdv, it would not work. If I ran

make vba

of course it would come up in VBA emulator just fine.

I'll try to distinguish HAM-specific binary formats from BA incompatibility of the HAM library.

What happens if you open VBA 1.3.1 and then open the ROM from VBA's Open... dialog box? If it doesn't work, then HAM must be using a custom binary format.

Another possibility is that the ROM is actually not a plain ROM but rather an ELF file. What happens when you do this?

$(ARMOBJ) -O binary your-rom.elf real-rom.gba

What happens if you copy the ROM onto a flash cart? If it works from flash but not from BA, then ditch BA. At least from my most basic tests, BA is known to have several problems such as de-synchronization between GB channels and PCM channels.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#1228 - tubooboo - Wed Jan 15, 2003 8:55 pm

Hi all

this is not a HAM problem, but a BoycottAdvance problem. The HAM examples run on any VBA, and on real hardware as well. If it does not work with BA, its a BA incompatibility , not a HAM incompatibility.

Best
Emanuel
_________________
HAM author
http://www.ngine.de

#1238 - Shawn - Wed Jan 15, 2003 10:05 pm

Quote:
I'll try to distinguish HAM-specific binary formats from BA incompatibility of the HAM library.

What happens if you open VBA 1.3.1 and then open the ROM from VBA's Open... dialog box? If it doesn't work, then HAM must be using a custom binary format.

Another possibility is that the ROM is actually not a plain ROM but rather an ELF file. What happens when you do this?

$(ARMOBJ) -O binary your-rom.elf real-rom.gba

What happens if you copy the ROM onto a flash cart? If it works from flash but not from BA, then ditch BA. At least from my most basic tests, BA is known to have several problems such as de-synchronization between GB channels and PCM channels.


I believe it is actually a ream rom. It creates the .elf file and does the -O binary in the make file. I don't have a flash setup yet so I cannot test that.

I think the problem is with BA. Some sort of compatibility issue.

Thanks for the help.

#1615 - Koji - Mon Jan 20, 2003 7:22 pm

I should really start ordering a registered copy of ham...
_________________
Some people think asians are smart, I've devoted my life to prove otherwise!