MSX2 - VDP Timing (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 43 invitados y 2 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - MSX2 - VDP Timing

Autor

MSX2 - VDP Timing

Snatcher-br
msx friend
Mensajes: 6
Publicado: Junio 19 2004, 07:16   
Hi to all
I tried translate the VDPready ASM routine that exist in the MAP to pascal inline .. but when I call the procedure the program crash can anyone give a little help

http://map.tni.nl/sources/docopy.php

procedure VDPready;
Begin
{VDP_Ready:
ld a,2
di
out (#99),a ;select s#2
ld a,15+128
out (#99),a
in a,(#99)
rra
ld a,0 ;back to s#0, enable ints
out (#99),a
ld a,15+128
ei
out (#99),a ;loop if vdp not ready (CE)
jp c,VDPready
ret}

inline ($3A/$02/
$F3/
$D3/$99/
$3E/$8F/
$D3/$99/
$1f/
$3E/$00/
$D3/$99/
$3E/$8F/
$FB/
$D3/$99/
$da/VDPready2
);
End;


thanks

BiFi
msx guru
Mensajes: 3142
Publicado: Junio 19 2004, 08:01   
Quote:

inline ($3A/$02/
$F3/
$D3/$99/
$3E/$8F/
$D3/$99/
$1f/
$3E/$00/
$D3/$99/
$3E/$8F/
$FB/
$D3/$99/
$da/VDPready2
);
End;


inline (
$3E/$02/ { ld a,2 ; this one was incorrect }
$F3/ { di }
$D3/$99/ { out ($99),a }
$3E/$8F/ { ld a,128+15 }
$D3/$99/ { out ($99),a }
$DB/$99/ ( in a,($99) ; you forgot this one }
$1F/ { rra }
$3E/$00/ { ld a,0 }
$D3/$99/ { out ($99),a }
$3E/$8F/ { ld a,128+15 }
$FB/ { ei }
$D3/$99/ { out ($99),a }
$DA/VDPready { jp c,VDPready ; even though the name is correct now I think it's going wrong here. }
);
Sonic_aka_T

msx guru
Mensajes: 2269
Publicado: Junio 19 2004, 12:46   
Have you given any thought to programming in ASM directly? The MSX is a great platform to learn ASM on. Even if you're not a very good assembly programmer, you're still likely to get better results in ASM then you are in Pascal. Apart from that, programming a simple computer like the MSX is very easy to do in ASM. Just a suggestion, although I'm sure I'll be flamed to death for making a suggestion like this
BiFi
msx guru
Mensajes: 3142
Publicado: Junio 19 2004, 14:11   
I now have a feeling you just killed him flaming him with that one time more.
Snatcher-br
msx friend
Mensajes: 6
Publicado: Junio 22 2004, 05:34   
thak's BIFi now the procedure work fine

Answering the Sonic_aka_T question ..

I'm learning ASM but the pascal language r my lab

I'm making a Library to MSX that can controll Shapes, Scroll[if I have a decent speed ] , sound etc .. to make games and some tools

I'm using the pascal because I'll port the library to a free Pascal compiller for Palm .. changing only the core of procedures and functions .. creating a cross library plataform to make games in both plataforms


 
 







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