SHARE
TWEET

Hello Satellaview Source

LuigiBlood May 20th, 2015 232 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lorom
  2.  
  3. table MSUFontTable.tab,rtl
  4.  
  5.         ORG $8000
  6.        
  7. MSUPlayer:
  8.         JSR initsnes
  9.         SEP #$20 ; 8 bits A
  10.         JSR ClearScreen
  11.        
  12.         lda #$8F  ; Turning off the screen, forcing VBlank.
  13.     sta $2100
  14.        
  15.         LDA #$01
  16.         STA $2121 ;Write to Pallette Table 1
  17.         LDA $A002
  18.         STA $2122
  19.         LDA $A003
  20.         STA $2122
  21.         LDA $A004
  22.         STA $2122
  23.         LDA $A005
  24.         STA $2122
  25.         LDA $A006
  26.         STA $2122
  27.         LDA $A007
  28.         STA $2122
  29.         LDA $A008
  30.         STA $2122
  31.        
  32.         STZ $210C ;BG3 = $6000, BG4 = $8000
  33.        
  34.         STZ $210B ;BG1 = $2000, BG2 = $4000
  35.        
  36.         LDA #$00
  37.         STA $2115 ;Inc Value for VRAM
  38.         STZ $2117 ;Address $0000 for VRAM
  39.         STZ $2116
  40.         LDA #$01
  41.         STA $4300 ;DMA control register
  42.         LDA #$18
  43.         STA $4301 ;DMA Destination Address : To VRAM "$2118"
  44.         STZ $4302 ;DMA Source Address : 00D000  00D000
  45.         LDA #$D0
  46.         STA $4303
  47.         STZ $4304
  48.         STZ $4305 ;DMA Size Transfer : $1000 Bytes.
  49.         LDA #$10
  50.         STA $4306
  51.         LDA #$01
  52.         STA $420B ;Begin Transfer
  53.        
  54.         STZ $2105 ;  BG Mode 0
  55.         LDA.b #%00001100
  56.         STA $2107
  57.         LDA.b #%00010000
  58.         STA $2108
  59.         LDA.b #%00010100
  60.         STA $2109
  61.         LDA.b #%00011000
  62.         STA $210A
  63.        
  64.        
  65.         STZ $210C ;GFX : BG3 = $0000, BG4 = $0000
  66.        
  67.         STZ $210B ;GFX : BG1 = $0000, BG2 = $0000
  68.        
  69.         LDA #$00
  70.         STA $2116 ; VRAM address to write : $C00
  71.         LDA #$0C
  72.         STA $2117
  73.        
  74.         LDA #$00
  75.         STA $2115 ;Inc Value for VRAM
  76.         LDA #$00
  77.         STA $4300 ;DMA control register
  78.         LDA #$18
  79.         STA $4301 ;DMA Destination Address : To VRAM "$2118"
  80.         LDA #$00
  81.         STA $4302 ;DMA Source Address : 00D000  00CFF0
  82.         LDA #$B1
  83.         STA $4303
  84.         STZ $4304
  85.         LDA #$FF
  86.         STA $4305 ;DMA Size Transfer : $FF Bytes.
  87.         STZ $4306
  88.         LDA #$01
  89.         STA $420B ;Begin Transfer
  90.        
  91.         SEP #$20
  92.         LDA.b #%00010001
  93.         STA $212C
  94.         lda #$0F  ; Turning on the screen.
  95.     sta $2100
  96.  
  97. ClearScreen:
  98.         lda #$8F  ; Turning off the screen, forcing VBlank.
  99.     sta $2100
  100.  
  101.         LDA #$A0
  102.         STA $2116 ; VRAM address to write : $CA0
  103.         LDA #$0C
  104.         STA $2117
  105.        
  106.         LDA #$00
  107.         STA $2115 ;Inc Value for VRAM
  108.         LDA #$00
  109.         STA $4300 ;DMA control register
  110.         LDA #$18
  111.         STA $4301 ;DMA Destination Address : To VRAM "$2118"
  112.         LDA #$00
  113.         STA $4302 ;DMA Source Address : B3A0
  114.         LDA #$11
  115.         STA $4303
  116.         STZ $4304
  117.         STZ $4305
  118.         LDA #$04
  119.         STA $4306 ;DMA Size Transfer : $400 Bytes.
  120.         LDA #$01
  121.         STA $420B ;Begin Transfer
  122.        
  123.         LDA #$0F
  124.         STA $2100
  125.         RTS
  126.        
  127. ;Snes Init
  128.         ORG $9000
  129.         incsrc SNESInit.asm
  130.  
  131. Font:  
  132.         ORG $D000
  133.         incbin Font8_v3.chr
  134.  
  135. Pal:   
  136.         ORG $A000
  137.         db $00, $00, $FF, $FF, $FF, $FF, $FF, $FF
  138.  
  139. Text:
  140.         ORG $B100
  141.         Fillbyte $00
  142.         Fill $1000
  143.         ORG $B100
  144.         db "Hello Satellaview !!!           ", "By LuigiBlood/Seru-kun"
  145.        
  146. Header:
  147.         ORG $FFC0
  148.                 cleartable
  149.                 db "MSU Player v0.3      " ;Name
  150.                 db $21 ;ROM Layout, LoROM; FastRom
  151.                 db $02 ;Cart Type : ROM + RAM
  152.                 db $05 ;ROM Size : 32KB
  153.                 db $06 ;RAM Size : 64KB
  154.                 db $00 ;Country Code : Jap (NTSC)
  155.                 db $00 ;Licensee : No.
  156.                 db $03 ;Version
  157.                
  158.         org $fffc
  159.                 dw $8000
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top