• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Offtopic › Delfino Plaza v
« Previous 1 ... 60 61 62 63 64

Chip8 Emu Help
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Chip8 Emu Help
06-24-2009, 12:30 AM
#4
gergep
Unregistered
 
thanks for the quick reply, you explanation helped a lot but i dont understand why the app always freezes when emulating.

EDIT: now i have another problem in my CPU - i dont exactly get how you can tell what the opcode is
for example if the opcode is 0xE0 ( clear the screen ), then why is it written like

Code:
opcode = (memory[pc]<<8 + memory[pc+1]);

pc+=2;

switch ((opcode&0xF000)>>12)
{
     case 0x0:
     {
          if ((opcode& 0x00FF) == 0xE0)
          {
              // Clear the screen
              memset(chip8.display, 0, 64*32);
          }
          break;
     }
}

how do you tell how to sort the opcodes under 0x0, 0x1, 0x2 ....
and if the opcode is 1nnn how would you convert that to hex

thanks
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Chip8 Emu Help - gergep - 06-23-2009, 07:23 AM
RE: Chip8 Emu Help - thegamefreak0134 - 06-23-2009, 06:40 PM
RE: Chip8 Emu Help - Thircase - 06-23-2009, 07:19 PM
RE: Chip8 Emu Help - gergep - 06-24-2009, 12:30 AM
RE: Chip8 Emu Help - gcp111 - 06-24-2009, 08:28 PM
RE: Chip8 Emu Help - gergep - 06-25-2009, 01:02 AM
RE: Chip8 Emu Help - gcp111 - 06-25-2009, 06:28 AM
RE: Chip8 Emu Help - gergep - 06-25-2009, 07:11 AM
RE: Chip8 Emu Help - gcp111 - 06-25-2009, 08:47 AM
RE: Chip8 Emu Help - gergep - 06-26-2009, 10:09 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode