VDP Ram Loading question

Discussion in 'Discussion and Q&A Archive' started by Alriightyman, Mar 22, 2008.

Thread Status:
Not open for further replies.
  1. Alriightyman

    Alriightyman I'm back! Member

    Joined:
    Oct 3, 2007
    Messages:
    156
    Location:
    USA
    Code:
    		move.l	#$40000001,($C00004).l &#59;
    
    		lea	(Nem_TitleFg).l,a0 
    
    		bsr.w	NemDec
    
    		move.l	#$60000001,($C00004).l
    
    		lea	(Nem_TitleSonic).l,a0 
    
    		bsr.w	NemDec
    
    		move.l	#$62000002,($C00004).l
    
    		lea	(Nem_TitleTM).l,a0 
    
    		bsr.w	NemDec
    
    		lea	($C00000).l,a6
    
    		move.l	#$50000003,4(a6)
    
    		lea	(Art_Text).l,a5
    I know this tells where to load the art at. #$40000001,($C00004).l loads the art to the vdp ram but how do you tell where it is loaded at? Same for #$60000001,($C00004).l and #$62000002,($C00004).l and #$50000003,4(a6).
     
    Last edited by a moderator: Mar 22, 2008
  2. Tweaker

    Tweaker OI! MIRON! Member

    Joined:
    Aug 10, 2007
    Messages:
    324
    I believe the first 3 nybbles are the tile offset in VRAM to load whatever art to. Multiply it by $20 to get the VRAM address.
     
Thread Status:
Not open for further replies.