Results 1 to 2 of 2

Thread: GB Emulation Question

  1. #1
    Forum Newbie
    Join Date
    Dec 2011
    Posts
    1

    Question GB Emulation Question

    Hi

    I recently started the development of a GB Emulator.
    But I have got a question about the order of bytes in the GameBoy hardware.

    Let's say I have the opcode:

    $C3040A

    C3 indicates that it's a jump (JP) instruction, 04 0A indicates the 16 bit address.

    Now, should I treat it like JP $040A or JP $0A04 ?
    So does it use Big Endian (normal order) or Little Endian (reverse order)?

    Thanks in advance!

  2. #2
    Controller Man ulaoulao's Avatar
    Join Date
    Dec 2005
    Location
    FL
    Posts
    3,391

    Default Re: GB Emulation Question

    ZD has a lot of nes docs FYI: http://www.zophar.net/documents/nes.html

    If its anything like VB I bet its little-endian

    Note: although the bits are listed in network (big-endian) order below, remember that the VB is a little-endian architecture.
    Original, the only way to play.

    Forums
    main page - Working controllers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •