ASM to Sega Genesis Platform

Would you like to react to this message? Create an account in a few clicks or log in to continue.
ASM to Sega Genesis Platform

All about assembly programming in the Sega Genesis console.


5 posters

    How to Edit the Time on the title Screen (Tutorial)

    calebjhuhlu
    calebjhuhlu


    Mensagens : 55
    Data de inscrição : 2011-06-16

    How to Edit the Time on the title Screen (Tutorial) Empty How to Edit the Time on the title Screen (Tutorial)

    Post  calebjhuhlu Mon Jun 20, 2011 6:48 pm

    Have you ever wanted to Put different music for your Titlescreen, but didnt know how to edit the time it shows up? Well now you can! start by opening you sonic1.asm

    Go to Title_LoadText You will see this:

    Code:


    Title_LoadText:
          move.w   (a5)+,(a6)
          dbf   d1,Title_LoadText ; load uncompressed text patterns

          move.b   #0,($FFFFFE30).w ; clear lamppost counter
          move.w   #0,($FFFFFE08).w ; disable debug item placement   mode
          move.w   #0,($FFFFFFF0).w ; disable debug mode
          move.w   #0,($FFFFFFEA).w
          move.w   #0,($FFFFFE10).w ; set level to   GHZ (00)
          move.w   #0,($FFFFF634).w ; disable pallet cycling
          bsr.w   LevelSizeLoad
          bsr.w   DeformBgLayer
          lea   ($FFFFB000).w,a1
          lea   (Blk16_GHZ).l,a0 ; load   GHZ 16x16 mappings
          move.w   #0,d0
          bsr.w   EniDec
          lea   (Blk256_GHZ).l,a0 ; load GHZ 256x256 mappings
          lea   ($FF0000).l,a1
          bsr.w   KosDec
          bsr.w   LevelLayoutLoad
          bsr.w   Pal_FadeFrom
          move   #$2700,sr
          bsr.w   ClearScreen
          lea   ($C00004).l,a5
          lea   ($C00000).l,a6
          lea   ($FFFFF708).w,a3
          lea   ($FFFFA440).w,a4
          move.w   #$6000,d2
          bsr.w   LoadTilesFromStart2
          lea   ($FF0000).l,a1
          lea   (Eni_Title).l,a0 ; load   title screen mappings
          move.w   #0,d0
          bsr.w   EniDec
          lea   ($FF0000).l,a1
          move.l   #$42060003,d0
          moveq   #$21,d1
          moveq   #$15,d2
          bsr.w   ShowVDPGraphics
          move.l   #$40000000,($C00004).l
          lea   (Nem_GHZ_1st).l,a0 ; load GHZ patterns
          bsr.w   NemDec
          moveq   #1,d0      ; load title screen pallet
          bsr.w   PalLoad1
          move.b   #$8B,d0      ; play title screen music
          bsr.w   PlaySound_Special
          move.b   #0,($FFFFFFFA).w ; disable debug mode
          move.w   #$178,($FFFFF614).w ; run title   screen for $178   frames
          lea   ($FFFFD080).w,a1
          jsr   DeleteObject2
          move.b   #$E,($FFFFD040).w ; load big Sonic object
          move.b   #$F,($FFFFD080).w ; load "PRESS   START BUTTON" object
          move.b   #$F,($FFFFD0C0).w ; load "TM" object
          move.b   #3,($FFFFD0DA).w
          move.b   #$F,($FFFFD100).w
          move.b   #2,($FFFFD11A).w
          jsr   ObjectsLoad
          bsr.w   DeformBgLayer
          jsr   BuildSprites
          moveq   #0,d0
          bsr.w   LoadPLC2
          move.w   #0,($FFFFFFE4).w
          move.w   #0,($FFFFFFE6).w
          move.w   ($FFFFF60C).w,d0
          ori.b   #$40,d0
          move.w   d0,($C00004).l
          bsr.w   Pal_FadeTo

    On this Line:

    Code:
    move.w   #$178,($FFFFF614).w ; run title   screen for $178   frames

    Modify 178 to how many frames you want, Example:

    Code:
    move.w   #$365,($FFFFF614).w ; run title   screen for $365   frames

    The Code above is how long you need it too be if you modify the music to 8B

    Now, to edit the music being played:

    in the same area look for:

    Code:
          move.b   #$8A,d0      ; play title screen music

    Modify 8A to any sound you wish.

    And thats how to edit the time the Title screen is displayed and how to edit the music it plays.
    SonicVaan
    SonicVaan


    Mensagens : 100511
    Data de inscrição : 2013-07-25
    Localização : ASMTSG
    Current Project : BEING THE KING OF THE FORUM

    How to Edit the Time on the title Screen (Tutorial) Empty Re: How to Edit the Time on the title Screen (Tutorial)

    Post  SonicVaan Thu Dec 19, 2013 1:29 pm

    Thanks! This will help me alot with my new project! You'll be in the credits.
    Electroball_
    Electroball_


    Mensagens : 2171
    Data de inscrição : 2013-11-26
    Current Project : who cares

    How to Edit the Time on the title Screen (Tutorial) Empty Re: How to Edit the Time on the title Screen (Tutorial)

    Post  Electroball_ Thu Dec 19, 2013 2:05 pm

    Lawl.
    avatar
    JoshDP


    Mensagens : 1682
    Data de inscrição : 2014-10-05

    How to Edit the Time on the title Screen (Tutorial) Empty Re: How to Edit the Time on the title Screen (Tutorial)

    Post  JoshDP Thu Dec 27, 2018 10:39 am

    Just an annual year bump! Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy bounce bounce bounce bounce bounce affraid Basketball cheers bom drunken Basketball cheers bom drunken cherry sunny Sleep
    Jdpense
    Jdpense


    Mensagens : 100567
    Data de inscrição : 2014-08-21

    How to Edit the Time on the title Screen (Tutorial) Empty Re: How to Edit the Time on the title Screen (Tutorial)

    Post  Jdpense Mon Dec 19, 2022 11:08 am

    poopy guide for poopy newbies

    bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce
    Jdpense
    Jdpense


    Mensagens : 100567
    Data de inscrição : 2014-08-21

    How to Edit the Time on the title Screen (Tutorial) Empty Re: How to Edit the Time on the title Screen (Tutorial)

    Post  Jdpense Thu Dec 22, 2022 11:44 pm

    Poopy buttz copylefted

    Sponsored content


    How to Edit the Time on the title Screen (Tutorial) Empty Re: How to Edit the Time on the title Screen (Tutorial)

    Post  Sponsored content


      Current date/time is Tue Dec 03, 2024 1:07 pm