02-13-2013, 09:28 AM
Keep this thread alive! 
More progress. The framework for interrupt handling is set up, with VBlank interrupts currently being the only one checked for. Have to read up on the rest to see when they're generated. Also, sprites are working, so the Tic-Tac-Toe demo has a little cursor now that tells you your position. Tetris boots, but the GPU isn't perfect yet, so it only gets so far before garbage data is drawn to the screen. Won't be long before it's totally playable. Also, the CPU is ~98% emulated, just haven't implemented DAA, STOP, and HALT instructions.
Spent forever and a day trying to figure out why some sprites weren't drawing. As I said, I'm using Imran Nazar's tutorials to understand the fundamentals of the system, but he sometimes forgets to mention essential code, e.g. code that's part of the JavaScript demo, but not mentioned at all in the article itself. Apparently GBs do a DMA transfer to write some sprite data. Picture time! The fish is just some random graphical demo I decided to run.
![[Image: M7t0D4t.png]](http://i.imgur.com/M7t0D4t.png)

More progress. The framework for interrupt handling is set up, with VBlank interrupts currently being the only one checked for. Have to read up on the rest to see when they're generated. Also, sprites are working, so the Tic-Tac-Toe demo has a little cursor now that tells you your position. Tetris boots, but the GPU isn't perfect yet, so it only gets so far before garbage data is drawn to the screen. Won't be long before it's totally playable. Also, the CPU is ~98% emulated, just haven't implemented DAA, STOP, and HALT instructions.
Spent forever and a day trying to figure out why some sprites weren't drawing. As I said, I'm using Imran Nazar's tutorials to understand the fundamentals of the system, but he sometimes forgets to mention essential code, e.g. code that's part of the JavaScript demo, but not mentioned at all in the article itself. Apparently GBs do a DMA transfer to write some sprite data. Picture time! The fish is just some random graphical demo I decided to run.
![[Image: M7t0D4t.png]](http://i.imgur.com/M7t0D4t.png)

![[Image: smile.gif]](http://forums.dolphin-emu.org/images/smilies/smile.gif)