Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: N64 Pointers

  1. #1
    Raving Lunatic HyperHacker's Avatar
    Join Date
    Sep 2004
    Location
    Alberta
    Posts
    201

    N64 N64 Pointers

    Does anyone know how pointers generally work in N64 ROMs? Say there was data at 0x112233, what would the pointer be?



    • Advertising

      advertising
      EmuTalk.net
      has no influence
      on the ads that
      are displayed
        
       

  2. #2
    Moderator aprentice's Avatar
    Join Date
    Nov 2001
    Posts
    1,390
    Quote Originally Posted by HyperHacker
    Does anyone know how pointers generally work in N64 ROMs? Say there was data at 0x112233, what would the pointer be?
    im guessing 0x80000000 + 0x112233

  3. #3
    Raving Lunatic HyperHacker's Avatar
    Join Date
    Sep 2004
    Location
    Alberta
    Posts
    201
    Tried it. Actually searched for just 112233 as well as 332211.

  4. #4
    Moderator aprentice's Avatar
    Join Date
    Nov 2001
    Posts
    1,390
    Quote Originally Posted by HyperHacker
    Tried it. Actually searched for just 112233 as well as 332211.
    well, "just in the rom" it would be at 0x112233.. I think you're confused, are you looking for data in a rom?

  5. #5
    Moderator Quvack's Avatar
    Join Date
    Nov 2001
    Location
    Melbourne, Australia
    Posts
    574
    It really depends on the game itself and how stuff is layed out/programmed. Say with a games script you can have the script starting at 0x123456, and then you'll have a pointer table which points to all the starts of dialogs in the script, so if the pointers value is 00 0A or something the value could be 0x123460, at least this is how im going from what I've hacked around with in n64 Its really dependant on the game itself though, and how the rom is swapped, etc..

  6. #6
    Raving Lunatic HyperHacker's Avatar
    Join Date
    Sep 2004
    Location
    Alberta
    Posts
    201

    Joystick

    Well, I'm mainly looking at Mario Kart 64, and later Mario 64. What I'm looking for is pointers in the ROM pointing to data in the ROM.

    Also, if anyone knows how to convert N64's 16-bit colour to RGB, feel free to post it, I'm having a lot of problems with it.
    Last edited by HyperHacker; September 12th, 2004 at 08:32.

  7. #7
    EmuTalk Member
    Join Date
    May 2004
    Posts
    27
    RRRRRGGGGGBBBBBA for palette colors usually.
    As for the ROM, it wouldn't be 8XXXXXXX in the ROM, although of course references to RAM in the ROM would be 8XXXXXXX. ROM addresses could be either just their address, or possibly BXXXXXXX.

  8. #8
    Raving Lunatic HyperHacker's Avatar
    Join Date
    Sep 2004
    Location
    Alberta
    Posts
    201

    Question

    Bah, it's still not working.
    Code:
    B = ((X And 62) \ 2) * 8
    G = ((X And 1984) \ 64) * 8
    R = ((X And 63488) \ 2048) * 8
    N64Colour = B + (256 * G) + (65536 * R)
    [edit] Also, how does 8-bit colour work? A palette index?
    Last edited by HyperHacker; September 12th, 2004 at 23:40.
    'Zig' Bus Lines. Moving for great justice since AD 2101.
    There are 11 types of people in the world: Those who can count in Binary and those who can't.

  9. #9
    EmuTalk Member
    Join Date
    May 2004
    Posts
    27
    I've not seen any 8-bit color in my experience, they're usually 8-bit indexes to a 16-bit or 32-bit palette. Although N64 texture stuff is different for many games.

  10. #10
    Raving Lunatic HyperHacker's Avatar
    Join Date
    Sep 2004
    Location
    Alberta
    Posts
    201
    Mario Kart 64's course maps seem to use an 8-bit format. I suspect it's a palette index. I render it as 00ggbbrr (R = (X And 3) * 8, G = ((X And 12) / 4) * 8, B = ((X And 48) / 16) * 8), and everything always shows up red.
    'Zig' Bus Lines. Moving for great justice since AD 2101.
    There are 11 types of people in the world: Those who can count in Binary and those who can't.

Page 1 of 2 12 LastLast

Similar Threads

  1. N64: Super Mario 64
    By sytaylor in forum Emulation64.com Reviews
    Replies: 17
    Last Post: November 12th, 2006, 18:54
  2. Nintendo is using N64 emulator on GC for Zelda MasterQuest?
    By Rice in forum General N64 Emulation Discussion
    Replies: 26
    Last Post: September 7th, 2005, 15:35
  3. Cool Screenies
    By Zeo in forum Screenshots
    Replies: 136
    Last Post: September 18th, 2004, 05:52
  4. Googlism (funny)
    By Smiff in forum Talk of the Town
    Replies: 54
    Last Post: April 8th, 2004, 16:17
  5. N64: The Adaptoid
    By Martin in forum Emulation64.com Reviews
    Replies: 15
    Last Post: October 16th, 2003, 08:12

Posting Permissions

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