COLOR=RESTORE (General discussion Foros MSX)MSX Resource Center MSX Info Update - Finnish MSX madness at its best           
                       
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 118 invitados y 8 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

General discussion - COLOR=RESTORE

Autor

COLOR=RESTORE

PingPong
msx professional
Mensajes: 884
Publicado: Julio 14 2008, 20:26   
Hi, i know that the color=restore command read palette from vram and feed to the VDP. However i do not remember the address from vram palette is taken. i need this info for screen modes 4-5

Anyone remember ?
Jipe
msx freak
Mensajes: 185
Publicado: Julio 14 2008, 20:55   
screen 4 : 1E80H 1E9FH

screen 5 : 7680H 769fH

PingPong
msx professional
Mensajes: 884
Publicado: Julio 15 2008, 00:35   
Quote:

screen 4 : 1E80H 1E9FH

screen 5 : 7680H 769fH



thx
ro
msx guru
Mensajes: 2320
Publicado: Julio 15 2008, 09:33   
in Basic there's also the BASE command, not? (which tells you where what is stored in Vram)
[D-Tail]

msx guru
Mensajes: 2994
Publicado: Julio 15 2008, 10:48   
ro: I guess reading/writing the VDP registers is more like these guys -- in BASIC you can read VDP register values when needed, so it's easy to compute the location of the color table (SPAT - 512).
PingPong
msx professional
Mensajes: 884
Publicado: Julio 15 2008, 19:44   
Quote:

ro: I guess reading/writing the VDP registers is more like these guys -- in BASIC you can read VDP register values when needed, so it's easy to compute the location of the color table (SPAT - 512).


D-tail. I'm not speaking about sprite att table but instead of the vram region where is stored the palette.
(I know the vdp store it's palette in registers, but there is also a vram region that hold this)
[D-Tail]

msx guru
Mensajes: 2994
Publicado: Julio 15 2008, 19:50   
*slaps self*, yes, then the BASE commands would be a viable alternative
flyguille
msx master
Mensajes: 1183
Publicado: Julio 15 2008, 23:02   
the palette table is NOT stored in VRAM
it is on a table writable/readable on VDP registers....

The MSXBIOS has the default values of that table stored in ROM
NYYRIKKI
msx master
Mensajes: 1503
Publicado: Julio 15 2008, 23:37   

for I=4 to 8: ?"SCREEN";I;" Palette: #";HEX$(BASE(I*5+3)+128):next


k0ga
msx user
Mensajes: 52
Publicado: Julio 16 2008, 08:35   
Quote:

the palette table is NOT stored in VRAM
it is on a table writable/readable on VDP registers....

The MSXBIOS has the default values of that table stored in ROM



flyguille, two things:


1º VDP palette registers are only writable, non readable.
2º MSX BIOS write a copy of palette in VRAM, so you can restore it with sc5 files (sc5 is only a vram dump) for example.
 
 







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