Author Topic: Refresh my memory  (Read 960 times)

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,198
  • Gender: Male
  • SARS
    • View Profile
    • BlitzKrieg Innovations
Refresh my memory
« on: December 06, 2007, 12:57:07 AM »
How do 16bit pointers work?  And how would one change them to 24bit pointers?  Some people can guess where this is going.

"Sorcerer: I've come for your soul!  Muahaha!"

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,415
  • Gender: Male
  • The return of the sombrero!
    • View Profile
    • Slick Productions
Re: Refresh my memory
« Reply #1 on: December 06, 2007, 01:18:19 AM »
16-bit pointers can work a couple ways. They can be relative, which can be a pain in the ass. Relative is relative to their current position. So say you have some pointers at 00/5400. The first pointer reads 0000, where it's pointing would be the first set of whatever after the pointers.

Then there's absolute. With absolute, you just look at the address, and go there in that bank. Easy as pie.

24-bit is similar, it just has the bank tagged on with it. To convert to 24-bit, you'd need to be handy at rewriting pointer grabbing routines.

119 bugs fixed and counting.

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,198
  • Gender: Male
  • SARS
    • View Profile
    • BlitzKrieg Innovations
Re: Refresh my memory
« Reply #2 on: December 06, 2007, 01:27:40 AM »
16-bit pointers can work a couple ways. They can be relative, which can be a pain in the ass. Relative is relative to their current position. So say you have some pointers at 00/5400. The first pointer reads 0000, where it's pointing would be the first set of whatever after the pointers.

Then there's absolute. With absolute, you just look at the address, and go there in that bank. Easy as pie.

24-bit is similar, it just has the bank tagged on with it. To convert to 24-bit, you'd need to be handy at rewriting pointer grabbing routines.

Hmmm.  I don't suppose I could con someone who's fluent in ASM to change a particular game over to the 24-bit pointer could I?   
:omghax:

"Sorcerer: I've come for your soul!  Muahaha!"

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,415
  • Gender: Male
  • The return of the sombrero!
    • View Profile
    • Slick Productions
Re: Refresh my memory
« Reply #3 on: December 06, 2007, 01:35:43 AM »
:bah:

Paste the routine, I'll see if I can. Just remember that all of the pointers just gained a byte, so you'll need to expand those yourself and possibly move them, if there's room.

119 bugs fixed and counting.