Guest User

Untitled

a guest
Jun 15th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ; ===========================================================================
  3. ; ---------------------------------------------------------------------------
  4. ; Main Menu - Load Cues
  5. ; ---------------------------------------------------------------------------
  6. ; HEADER:   Number of cues
  7. ; FORMAT:   Data Type, Arguments (see below)
  8. ; ---------------------------------------------------------------------------
  9. ; DATA TYPES:
  10. ;
  11. ;   #0  RAW DATA
  12. ;       - Length, Offset, Destination/dmavram
  13. ;   #2  1BPP TILES
  14. ;       - Offset, Destination/dcvram, Pixel Mask/<<28, Size/*8-1
  15. ;   #4  COMPRESSED MAPPINGS
  16. ;       - Offset, Destination/dcvram, Row Factor
  17. ;   #6  RAW MAPPINGS
  18. ;       - Offset, Destination/dcvram, Width-1, Height-1
  19. ;
  20. ; ---------------------------------------------------------------------------
  21.  
  22. Menu_LoadCues   dc.w    9           ; number of items
  23.  
  24.     ; ===== Graphics ==================================================
  25.         dc.w    2           ; 1bpp Menu BG
  26.         dc.l    Menu_BG         ; - offset
  27.         dcvram  $27A0           ; - destination
  28.         dc.l    1<<28           ; - pixel mask
  29.         dc.w    $8-1            ; - size
  30.  
  31.         dc.w    0           ; 4bpp 'Game Select' patterns
  32.         dc.w    $400            ; - length
  33.         dc.l    Menu_GameSelect     ; - offset
  34.         dmavram $2800           ; - destination
  35.  
  36.         dc.w    0           ; 4bpp Game Titles patterns
  37.         dc.w    $1E0            ; - length
  38.         dc.l    Menu_GameTitles     ; - offset
  39.         dmavram $2C00           ; - destination        
  40.  
  41.         dc.w    0           ; 4bpp Menu Button Icons
  42.         dc.w    $40         ; - length
  43.         dc.l    Menu_Buttons        ; - offset
  44.         dmavram $2DE0           ; - destination
  45.  
  46.         dc.w    2           ; 1bpp Menu 'Play' label
  47.         dc.l    Menu_Controls       ; - offset
  48.         dcvram  $2E20           ; - destination
  49.         dc.l    $D<<28          ; - pixel mask
  50.         dc.w    3*8-1           ; - size
  51.  
  52.         dc.w    2           ; 1bpp Menu 'Credits' label
  53.         dc.l    Menu_Controls+8*3   ; - offset
  54.         dcvram  $2E80           ; - destination
  55.         dc.l    $F<<28          ; - pixel mask
  56.         dc.w    6*8-1           ; - size
  57.  
  58.         dc.w    2           ; 1bpp Debug Numbers *
  59.         dc.l    DebugNumbers        ; - offset
  60.         dcvram  $25A0           ; - destination
  61.         dc.l    4<<28           ; - pixel mask
  62.         dc.w    $10*8-1         ; - size
  63.  
  64.     ; ===== Mappings ==================================================
  65.         dc.w    4           ; Compressed 'Game Select' maps
  66.         dc.l    Map_GameSelect      ; - offset
  67.         dcvram  $A410           ; - destination
  68.         dc.w    $100            ; - row factor
  69.  
  70.         dc.w    4           ; Compressed 'Sonic the hedgehog' maps
  71.         dc.l    Map_S1Title     ; - offset
  72.         dcvram  $B508           ; - destination
  73.         dc.w    $100            ; - row factor
  74.  
  75.         dc.w    4           ; Compressed Controls maps
  76.         dc.l    Map_Controls        ; - offset
  77.         dcvram  $B918           ; - destination
  78.         dc.w    $100            ; - row factor
Add Comment
Please, Sign In to add comment