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. |
|
|
|
|