I've pretty much scrapped the idea of using Direct X for this project. What a major pain in the rear to work with.
On the other hand, SDL seems very good. Clear, concise and down to the point. Further, there's a header conversion for Delphi. With a couple of seconds, I had it creating a window and blitting a yellow pixel in the center of the screen.
Other things I messed with during the 30 minutes I was playing around:
1. Pretty much finished the init routine. Now, all know opcodes are mapped with the number of cycles, the instruction and address mode.
2. Added in the remainder of the program roms into memory. Including adding in the mirror of 310 at the end so that we can determine the program counter during the cpu reset routine.
3. Worked a little bit on the cpu reset for determining the starting address. I've either loaded the wrong rom, loaded it in the wrong spot or my logic is incorrect in doing the arithmetic because a test revealed 4 for the PC. I don't know, but that just doesn't sound correct to me. Maybe because there's no program code at location 4 in memory? I'll have to give this some additional thought next time I look into it.
ArcadeGamenut
|