|
Post by 3vix6 on Jun 4, 2010 22:02:59 GMT -5
Hi,
I started going through the musicdemo4 and noticed a few things..
1.) I made a simple program, no output, just an "int main" and a return statement. After I ran the make command, there was a constant and a buch of hex numbers placed into my main.c, what is this for?
2.) Is the picture that comes up "flem team" contained inside the genesis.h? or is it a separate file? (like a bitmap of sorts)
3.) when the objcopy command is ran why are the flags "--pad-to 4194304 -O binary rom.out rom.bin" created along with it.. is this to pad the file so that it doesn't have a bad checksum?
|
|
|
Post by jlf65 on Jun 4, 2010 22:44:11 GMT -5
1 - Probably "standard" startup junk that's normally only used for C++. 2 - It's part of libmd. There's a define in the makefile for the lib if I remember correctly. 3 - You want to pad roms out to nice powers of two when you can. Obviously, a 3KB rom doesn't need to be padded out to 4MB - just change it. Small powers of two would be like 65536, 131072, 262144, etc. It has nothing to do with the checksum, which isn't calculated, by the way. If you want a good checksum, you'll have to use a MD utility designed to do that.
|
|
|
Post by 3vix6 on Jun 4, 2010 22:50:37 GMT -5
Will a rom.bin file still run off a genesis if there is a bad checksum? (I'd like to know because i really want to use real hardware when I can)
|
|
|
Post by jlf65 on Jun 5, 2010 1:18:46 GMT -5
Yes. The checksum is NOT checked by the Genesis - it is up to the cart to check its own checksum.
|
|