Garstyciuks
New member
I can't find those two anywhere, could you upload it here? (I guess they are freeware, aren't they?)
Falcon4ever said:perhaps we should close this topic and create a newone. The first post should include all important hints and links to usefull documents.
char regs[8]; //buffer for registers
char *A = &(regs[1]), *F = &(regs[0]);
char *B = &(regs[3]), *C = &(regs[2]);
char *D = &(regs[5]), *E = &(regs[4]);
char *H = &(regs[7]), *L = &(regs[6]);
short *AF = (short*) &(regs[0]);
short *BC = (short*) &(regs[2]);
short *DE = (short*) &(regs[4]);
short *HL = (short*) &(regs[0]);
union reg_t
{
u16 r16;
struct r8_t
{
//u8 h;
//u8 l;
u8 l;
u8 h;
}r8;
};
I have commented te other variant of it. When I was trying to run something on my emulator, it didn't work quite well, so I tried the other order and didn't change backShizZy said:You have it backwards, hi then lo, right?
(and a screenshot for possible motivation to any future gb emu coders)Nhes is an "experimental" Gameboy/GBC emulator. Currently, it runs ~95% of GameBoy games,
and about ~30% of Gameboy Color games. It was created as a learning project, and therefore
I have not taken the time to fully maximize its compatability. TBH as much as I enjoyed doing
this project, I've implemented all of the interesting features, so I no longer have any
motivation to work on it (there's nothing new and special to implement, and there's a million
other emulators with much better compatibility). At this point, the emu pretty much stands
final, though I will probably eventually get around to completing the menus, and reimplementing
a debugger.
Until then, Enjoy!
zenogais said:I was actually able to keep my GameBoy emu relatively clean by picking up on certain patterns in the opcodes. Granted there's no 100% clean way to do this, but it did work quite nicely. When I get on my other comp I'll post some sources so you can see what I'm talking about.