Advertisement
Guest User

Untitled

a guest
Nov 4th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TitleScreen2:
  2.         moveq   #$FFFFFFE4,d0
  3.         jsr (PlaySound).l
  4.         jsr (ClearPLC).l
  5.         jsr (Pal_FadeFrom).l
  6.         move    #$2700,sr
  7.         move.w  (VDP_reg_1_command).w,d0
  8.         andi.b  #$BF,d0
  9.         move.w  d0,(VDP_control_port).l
  10.         bsr.w   ClearVRAM
  11.         jsr (ClearScreen).l
  12.         lea (VDP_control_port).l,a6
  13.         move.w  #$8004,(a6)
  14.         move.w  #$8230,(a6)
  15.         move.w  #$8407,(a6)
  16.         move.w  #$8230,(a6)
  17.         move.w  #$8700,(a6)
  18.         move.w      #$8720,(a6)
  19.         move.w  #$8C81,(a6)
  20.         move.w      #$9011,(a6)
  21.         move.w  #$8B03,(a6)
  22.         clr.b (Last_star_post_hit).w
  23.         move.w  #$100,(V_scroll_value).w
  24.         lea (Sprite_table_input).w,a1
  25.         moveq   #0,d0
  26.         move.w  #$FF,d1
  27. @1      move.l  d0,(a1)+
  28.         dbf d1,@1
  29.         lea (Object_RAM).w,a1
  30.         moveq   #0,d0
  31.         move.w  #$7FF,d1
  32. @2      move.l  d0,(a1)+
  33.         dbf d1,@2
  34.         lea (Camera_RAM).w,a1
  35.         moveq   #0,d0
  36.         move.w  #$3F,d1
  37. @3      move.l  d0,(a1)+
  38.         dbf d1,@3
  39.         clr.w   (DMA_queue).w
  40.         move.l  #DMA_queue,(DMA_queue_slot).w
  41.         vram    $2820
  42.         lea (ArtText_TitleScreen).l,a0
  43.         jsr (NemDec).l
  44.         vram    $2C20
  45.         lea (ArtNem_TitleScreen_Text).l,a0
  46.         jsr (NemDec).l
  47.         lea (ArtBG_TitleScreen).l,a0
  48.         lea (RAM_start).l,a1
  49.         movea.w #$20,a2
  50.         jsr KosArt_To_VDP(pc)
  51.         move.b  #$16,(V_int_routine).w
  52.         jsr (DelayProgram).l
  53.         lea (ArtFG_TitleScreen).l,a0
  54.         lea (RAM_start).l,a1
  55.         movea.w #$520,a2
  56.         jsr KosArt_To_VDP(pc)
  57.         move.b  #$16,(V_int_routine).w
  58.         jsr (DelayProgram).l
  59.         lea (ArtFG2_TitleScreen).l,a0
  60.         lea (RAM_start).l,a1
  61.         movea.w #$940,a2
  62.         jsr KosArt_To_VDP(pc)
  63.         move.b  #$16,(V_int_routine).w
  64.         jsr (DelayProgram).l
  65.         lea    (RAM_start).l,a1
  66.         lea    (MapFG2_TitleScreen).l,a0
  67.         move.w  #$4A,d0
  68.         jsr (EniDec).l
  69.         lea (RAM_start).l,a1
  70.         vram    $C310,d0
  71.         moveq   #$17,d1
  72.         moveq   #$D,d2
  73.         jsr (Plane_Map_To_VRAM).l
  74.         move    #$2700,sr
  75.         vram    $D000,d0
  76.         move.w  #$3FF,d3
  77.         bsr.w   ClearVRAMArea
  78.         move    #$2300,sr
  79.         bsr.w   Clear_Palette
  80.        
  81.         lea Pal_TitleScreen(pc),a1
  82.         lea (Target_palette).w,a2
  83.         moveq   #$17,d0
  84. @4      move.l  (a1)+,(a2)+
  85.         dbf d0,@4
  86.        
  87.         move.b  #$16,(V_int_routine).w
  88.         jsr (DelayProgram).l
  89.         move.w  #$C0,(Demo_timer).w
  90.         move.w  (VDP_reg_1_command).w,d0
  91.         ori.b   #$40,d0
  92.         move.w  d0,(VDP_control_port).l
  93.         jsr (Pal_FadeTo).l
  94.        
  95. @5      move.b  #$16,(V_int_routine).w
  96.         jsr (DelayProgram).l
  97.         bsr.w   DynamicPalette_TitleScreen
  98.         bsr.w   PlaneFall
  99.         tst.w   (Demo_timer).w
  100.         bne.s   @5
  101.        
  102.         moveq   #$FFFFFF9B,d0
  103.         jsr (PlaySound).l
  104.        
  105.         move.w      #$9001,(VDP_control_port).l
  106.         lea    (RAM_start).l,a1
  107.         lea    (MapBG_TitleScreen).l,a0
  108.         move.w  #$6001,d0
  109.         jsr (EniDec).l
  110.        
  111.         lea (RAM_start).l,a1
  112.         vram    $E000,d0
  113.         moveq   #$3F,d1
  114.         moveq   #$1B,d2
  115.         jsr (Plane_Map_To_VRAM).l
  116.        
  117.         lea    (RAM_start).l,a1
  118.         lea    (MapFG_TitleScreen).l,a0
  119.         move.w  #$6029,d0
  120.         jsr (EniDec).l
  121.        
  122.         lea (RAM_start).l,a1
  123.         vram    $C000,d0
  124.         moveq   #$3F,d1
  125.         moveq   #$1B,d2
  126.         jsr (Plane_Map_To_VRAM).l
  127.        
  128.         lea    (RAM_start).l,a1
  129.         lea    (MapFG2_TitleScreen).l,a0
  130.         move.w  #$4A,d0
  131.         jsr (EniDec).l
  132.        
  133.         lea (RAM_start).l,a1
  134.         vram    $C310,d0
  135.         moveq   #$17,d1
  136.         moveq   #$D,d2
  137.         jsr (Plane_Map_To_VRAM).l
  138.        
  139.         move.b  #$F,(Object_RAM).w
  140.         bsr.w   Load_Title_Text
  141.        
  142.         lea Pal_TitleScreen+$60(pc),a1
  143.         lea (Target_palette_line_4).w,a2
  144.         moveq   #7,d0
  145. @6      move.l  (a1)+,(a2)+
  146.         dbf d0,@6
  147.        
  148.         jsr (Pal_MakeWowWhite).l       
  149. @7      move.b  #$16,(V_int_routine).w
  150.         jsr (DelayProgram).l
  151.         jsr (ObjectsLoad).l
  152.         jsr (BuildSprites).l
  153.         bsr.w   DynamicPalette_TitleScreen
  154.         bsr.w   Title_Deform
  155.         bsr.w   TitleScreen_Code
  156.         tst.b   (Joypad|Press).w
  157.         bpl.s   @7
  158.         tst.b   ($FFFFFFE0).w
  159.         beq.s   @8
  160.         btst    #6,(Joypad|Held).w
  161.         beq.s   @8
  162.         jmp (Jmp_LevelSelect).l
  163. @8      move.b  #3,(Current_act).w
  164.         jmp (PlayLevel).l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement