hybrid mode (scr2) on msx2: page issue (Development MSX Fora)MSX Resource Center MSX Info Update - Finnish MSX madness at its best           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 50 gasten en 2 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - hybrid mode (scr2) on msx2: page issue

Schrijver

hybrid mode (scr2) on msx2: page issue

ARTRAG
msx master
Berichten: 1686
Geplaatst: 19 Februari 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
Berichten: 1686
Geplaatst: 20 Februari 2008, 11:47   
hybrid mode works as expected,
the problem was elsewhere in my code,
values of registers are correct!

GhostwriterP
msx addict
Berichten: 312
Geplaatst: 20 Februari 2008, 19:34   
The use of the smiley seems more appropriate
 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.