HW sprite addresses

Por JohnHassink

Ambassador (5655)

Imagen del JohnHassink

20-02-2011, 19:14

In screen 5, what's the block again to store the spritepatterns in?
I guess the block should end with 79FF, but what's the starting address?

Login sesión o register para postear comentarios

Por Metalion

Paragon (1622)

Imagen del Metalion

20-02-2011, 19:22

In SCREEN 5, the standard address for the Sprite Generator Table is 7800 - 7FFF.
That is, when called through BASIC or BIOS.

Por JohnHassink

Ambassador (5655)

Imagen del JohnHassink

20-02-2011, 19:23

Thank you, Metalion!
So, when I go as far as 7FFF, that probably means including color and attribute settings?

EDIT: sure? Could it be an earlier address? Like 7000? (since the pixel data ends at least at 69FF).

Por Metalion

Paragon (1622)

Imagen del Metalion

20-02-2011, 20:14

You can put the sprite data wherever you like in VRAM.
The sprite generator table address is the value of register r#6 multiplied by 800h.
So, if you set the register r#6 to 14, you'll get a starting address of the sprite generator table at 7000h.
Tongue

PS : Beware that you'll have to set all other sprite tables addresses as well.