• 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-25-2009, 06:28 AM
#7
gcp111
Unregistered
 
(06-25-2009, 01:02 AM)gergep Wrote: Sorry for all the annoying questions but i still dont get how the people who make the open source emulators know where to put the opcodes... and also if the is 1NNN how come all of the docs say that is the opcode in hexadecimal and if thats true, how would i get the value

Hexadecimal is just a base-16 number system. You can represent hex humbers in, say, decimal, or better yet - binary.

You take the opcodes from the file 2 bytes (hint: a short) at a time.

The "& 0x0FFF" gets the last three nibbles (4 bits, half a byte) of the opcode. This is the NNN part. Remember, all Chip8 opcodes are 2 bytes long.

The first nibble of the opcode is taken from the first nibble, then some are taken from other parts (like ones from the same set - such as 8XY0 and 8XY1.)

I'm definitely not an expert, but go stare at the documentation, or find some code that names things. In my code, it names things like "op_firstnibble"

I still can't get mine to draw things right though. Tongue I think I'm going to make one in another language for right now.
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