Vdp Commands Copying RAM to VRAM (Development Foros MSX)MSX Resource Center            
                       
English Nederlands Espa�ol Portugu�s Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 52 invitados y 6 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - Vdp Commands Copying RAM to VRAM

Ir a la página ( Página anterior 1 | 2 )
Autor

Vdp Commands Copying RAM to VRAM

BiFi
msx guru
Mensajes: 3142
Publicado: Diciembre 26 2005, 09:17   
RTF VDP-bible?
norakomi
msx professional
Mensajes: 861
Publicado: Diciembre 26 2005, 09:29   
Quote:

RTF VDP-bible?

Hahaha, we're not all geniusses !! I read the bible, but this subject is new to me, and there seems to be something i did wrong, could you have a peek at this code?

This is my table R#32-R#46

VR2RAM:
SX: DB 0,0
SY: DB 0,0
DX: DB 0,0
DY: DB 0,0
NX: DB 10,0
NY: DB 10,0
CLR: DB 0
ARG: DB 0
CMD DB $A0 ;LMCM

This means I will copy a block of 10x10 to RAM.
I know that after executing the CMD I can readout S#7 for the color value.
But I dont even get to that point, because
after executing the CMD the computer hangs......

I did read that TR needs to be reset before executing the command.
I think I did reset TR like this:

ld a,2 ;s#2 reset TR
di
out ($99),a
ld a,15+128 ;status register access
out ($99),a
in a,($99)

ld a,0 ;back to s#0
out ($99),a
ld a,15+128
ei
out ($99),a

what did i do wrong here?
BiFi
msx guru
Mensajes: 3142
Publicado: Diciembre 26 2005, 09:42   
Did you do it by 'the book'? as in, coded it according to the flow chart?
norakomi
msx professional
Mensajes: 861
Publicado: Diciembre 26 2005, 11:37   
yes i followed the flow chart.
its pretty clear
 
Ir a la página ( Página anterior 1 | 2 )
 







(c) 1994 - 2009 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation