Autor
| hybrid mode (scr2) on msx2: page issue
|
ARTRAG msx master Mensajes: 1802 | Publicado: Febrero 19 2008, 11:29   |
Hi,
I'm trying to have two alternative sets of tiles in hybrid mode (the screen 2 with repeated banks):
one with shapes at 0x00000 and colours at 0x02000;
one with shapes at 0x10000 and colours at 0x12000.
The addresses do not matter, I selected those above for the sake of simplicity
I initialize the hybrid mode with the parameters:
defb 0x02 ; Reg# 0 000000[M3][EV]
defb 0x62 ; Reg# 1 [4/16k][BLANK][IE][M1][M2]0[SIZE][MAG]
defb 0x06 ; Reg# 2 0000[NAME TABLE BASE ADDRESS] = 1800h
defb 0x9F ; Reg# 3 [COLOR BASE ADDRESS] = 2000h
defb 0x00 ; Reg# 4 00000[PATTERN GENERATOR BASE ADDRESS] = 0000h
defb 0x36 ; Reg# 5 0[SPRITE ATTRIBUTE TABLE BASE ADDRESS] = 1b00h
defb 0x07 ; Reg# 6 00000[SPRITE PTRN GNRTR BASE ADDRESS] = 3800h
defb 0x01 ; Reg# 7 [TEXT COLOR 4bts][BACKDROP COLOR 4bts]
Other msx2 registers are left as default. In particular R#10 is zero.
The resulting memory layout is:
; PNT 0x1800 // Pattern Name Table
; PGT 0x0000 // Pattern Generator Table
; PCT 0x2000 // Pattern Color Table
In order to activate the second tile set I would have changed R#4 and R#10.
According to the manual, A16, in R#4, is in bit5, while in R#10 is in bit2.
I tried by setting:R#4 = 32 and R#10 =4
but this gives no result, the tiles seem corrupted....
In order to activate the other tile set I restore R#4 = 0 and R#10 =0 and this works.
Where am I wrong ?
What are the correct settings of VDP registers to have PGT and PCT active elsewhere ?
Could it be due to the fact that hybrid mode do not work like the other modes ?
|
|
ARTRAG msx master Mensajes: 1802 | Publicado: Febrero 20 2008, 11:47   |
hybrid mode works as expected,
the problem was elsewhere in my code,
values of registers are correct!
 |
|
GhostwriterP msx addict Mensajes: 320 | Publicado: Febrero 20 2008, 19:34   |
The use of the  smiley seems more appropriate  |
|
|
|
|