#8365 - XeroxBoy - Wed Jul 09, 2003 4:44 am
Previously, I've been including my external data through included .h files, and its worked fairly well. However, this generally isn't the best way to do things - recompilling takes forever. So, I've decided to switch over to GBFS, but I'm, unfortunately, having some difficulty getting it to work. I've packed my files together properly, as far as I can tell, and have appended them to my ROM. However, it doesn't seem to be working, and I'm fairly confident that it's because I'm making one or more stupid, stupid mistakes in my code. So, I'd really appreciate it if someone looked over my code and pointed out all of the flaws in it.
Many thanks in advance!
Code: |
#define REG_DM3SAD *(u32*)0x40000D4 #define REG_DM3DAD *(u32*)0x40000D8 #define REG_DM3CNT_L *(u16*)0x40000DC #define REG_DM3CNT_H *(u16*)0x40000DE #define CharMem ((u16*)0x6010000) const GBFS_FILE *dat = find_first_gbfs_file(find_first_gbfs_file); const u8 *tileset = gbfs_get_obj(dat, "tileset.dat", NULL); REG_DM3SAD = tileset; REG_DM3DAD = tiles0; REG_DM3CNT_L = 8192; REG_DM3CNT_H |= 0x80000000; |
Many thanks in advance!