Lookup Table Help

Discussion in 'Sega Discussion' started by Scorpion Illuminati, Jan 26, 2017.

  1. Scorpion Illuminati

    Scorpion Illuminati Scorpion Illuminati Lead Developer(Site Supporter)

    Joined:
    Oct 1, 2015
    Messages:
    25
    Likes Received:
    1
    Hi,

    I'm am still relitively new to sega genesis programming. I was wondering if someone could please explain to me how to make a lookup table like so:

    Cue:
    dc.b Song1, Song1_Beatmap, 0
    dc.b Song2, Song2_Beatmap, 0

    Where each entry points to a label for the actual tune data and a label to that songs beatmap data. Any assistance in this matter would be greatly appreciated.

    Sincerely,

    Scorpion Illuminati
     
  2. TriMesh

    TriMesh Site Supporter 2013-2017

    Joined:
    Jul 3, 2008
    Messages:
    2,324
    Likes Received:
    750
    OK, the basic problem is that dc.b defines byte (8 bit) constants. Since addresses on a 68000 are 24 bits long, you have to store them in a long - basically, use dc.l rather than dc.b
     
    -=FamilyGuy=- likes this.
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page