MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Robbbert
Sir
Reged: 08/21/04
Posts: 3199
Loc: A long way from you
Send PM
Re: video tilemap problem
04/06/12 06:54 AM


Personally I never use tiles, I'd rather output the pixels myself. This gives you full control of the display. Take a look at the zrt80 driver in MESS. This shows the basic concept for outputting lines of dots on the screen. You will need to change the 'for' loop to pick up every 4th byte ( change x++ to x+=4 ).

Notice where 8 pixels are output, bits 7 to 0, left to right. Since your character generator has a different order, put the order here. This saves you the overhead of doing BITSWAP8.

Once you have text on the screen, then you can start thinking about implementing the attributes.


> hello ,
>
> this is my first try on the MAME emulator project.
> Board info :
> CPU : MC68000 8mhz
> Video : MC6845
> Audio : AY3-8912
>
> I have done for the moment :
> 1. mapping of the board
> 2. skeleton of the driver (software run, but still some i/o todo)
> 3. dump of ROM ,NVRAM, emulation of PAL
>
> currently , I am lost in the decoding of the video section
> VIDEO RAM work with 2 BYTES
> 1 ATTRIBUTE BYTE (color + bank select)
> 1 TILE BYTE
>
> there is a BYTESWAP at the output of ROM GFX plus
> a funny use of clock in the RASTER ROW.
>
> I have attached a DUMP of the videoram and the schematic
> if someone can help me.
>
> thanks
>
> Yves







Entire thread
Subject Posted by Posted on
* video tilemap problem yves 04/06/12 03:41 AM
. * Re: video tilemap problem Heihachi_73  04/06/12 11:38 AM
. * Re: video tilemap problem Robbbert  04/06/12 06:54 AM
. * Re: video tilemap problem yves  04/06/12 04:13 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 63 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3615