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

Pages: 1

yves
MAME Fan
Reged: 03/20/12
Posts: 2
Send PM


video tilemap problem
#281649 - 04/06/12 03:41 AM Attachment: nev_video.zip 42 KB (24 downloads)


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



Robbbert
Sir
Reged: 08/21/04
Posts: 3199
Loc: A long way from you
Send PM


Re: video tilemap problem new [Re: yves]
#281666 - 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



Heihachi_73
I am the Table!
Reged: 10/29/03
Posts: 1074
Loc: Melbourne, Australia
Send PM


Re: video tilemap problem new [Re: yves]
#281684 - 04/06/12 11:38 AM


> 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

Nice... haven't seen a Winning Touch machine in many years - they were once commonplace in Victoria Australia, almost every gaming venue/pub/hotel had one! The games we had down here were all 5- or 10-game multigame units rather than standalone games.



yves
MAME Fan
Reged: 03/20/12
Posts: 2
Send PM


Re: video tilemap problem new [Re: Robbbert]
#281699 - 04/06/12 04:13 PM


thanks for your help Rob ,

I have changed my video section to use pixel drawing.
still need to figure out the use of :

1. U14 Rom char Adress A0 ,A1 (connected to clock divider)
2. this would give character of 8x32 ? (why not use Ra0..Ra5)

I doing test for the moment without the attribute Byte.

have a nice week end

yves


Pages: 1

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

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