summaryrefslogtreecommitdiffstats
path: root/src/mess/video/bbc.c
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2013-01-11 07:32:46 +0000
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2013-01-11 07:32:46 +0000
commit0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch) (github)
tree234109de1123b13f217494af4b3f8efad346d5cc /src/mess/video/bbc.c
parent111157ca09a9ff60fe4a9ba49173c315e94314fa (diff)
downloadmame-0e19f641d3186cdbf51f8ca857e2b07ab95779c2.tar.bz2
mame-0e19f641d3186cdbf51f8ca857e2b07ab95779c2.zip
Cleanups and version bumpmame0148
Diffstat (limited to 'src/mess/video/bbc.c')
-rw-r--r--src/mess/video/bbc.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mess/video/bbc.c b/src/mess/video/bbc.c
index b420703cfb5..bb195d5f419 100644
--- a/src/mess/video/bbc.c
+++ b/src/mess/video/bbc.c
@@ -44,13 +44,13 @@ unsigned int calculate_video_address(bbc_state *state,int ma,int ra)
int c1=state->m_b5_video1;
/* the 4 bit input port b on IC39 are produced by 4 NAND gates.
- these NAND gates take their
- inputs from c0 and c1 (from IC32) and ma12 (from the 6845) */
+ these NAND gates take their
+ inputs from c0 and c1 (from IC32) and ma12 (from the 6845) */
/* get bit m12 from the 6845 */
int ma12=(ma>>12)&1;
- // 4 bit input B on IC39 74LS283 (4 bit adder)
+ // 4 bit input B on IC39 74LS283 (4 bit adder)
/* 3 input NAND part of IC 36 */
int b1=(~(c1 & c0 & ma12)) & 1;
/* 2 input NAND part of IC40 (b3 is calculated before b2 and b4 because b3 feed back into b2 and b4) */
@@ -70,8 +70,8 @@ unsigned int calculate_video_address(bbc_state *state,int ma,int ra)
int s=(a+b+1)&0xf;
/* if MA13 (TTXVDU) is low then IC8 and IC9 are used to calculate
- the memory location required for the hi res video.
- if MA13 is hight then IC10 and IC11 are used to calculate the memory location for the teletext chip*/
+ the memory location required for the hi res video.
+ if MA13 is hight then IC10 and IC11 are used to calculate the memory location for the teletext chip*/
unsigned int m;
if ((ma>>13)&1)
{
@@ -113,9 +113,9 @@ WRITE8_MEMBER(bbc_state::bbc_videoULA_w)
// Make sure vpos is never <0 2008-10-11 PHS.
int vpos=machine().primary_screen->vpos();
if(vpos==0)
- machine().primary_screen->update_partial(vpos);
+ machine().primary_screen->update_partial(vpos);
else
- machine().primary_screen->update_partial(vpos -1 );
+ machine().primary_screen->update_partial(vpos -1 );
logerror("setting videoULA %.4x to:%.4x at :%d \n",data,offset,machine().primary_screen->vpos() );
@@ -194,7 +194,7 @@ static MC6845_UPDATE_ROW( vid_update_row )
bbc_state *state = device->machine().driver_data<bbc_state>();
const rgb_t *palette = palette_entry_list_raw(bitmap.palette());
- logerror("MC6845_UPDATE_ROW: ma=%d, ra=%d, y=%d, x_count=%d\n",ma,ra,y,x_count);
+ logerror("MC6845_UPDATE_ROW: ma=%d, ra=%d, y=%d, x_count=%d\n",ma,ra,y,x_count);
if (state->m_videoULA_teletext_normal_select)
{
@@ -284,15 +284,15 @@ WRITE_LINE_MEMBER(bbc_state::bbc_vsync)
const mc6845_interface bbc_mc6845_intf =
{
- "screen", /* screen number */
- 8, /* numbers of pixels per video memory address */
- NULL, /* begin_update */
- vid_update_row, /* update_row */
- NULL, /* end_update */
- DEVCB_NULL, /* on_de_changed */
- DEVCB_NULL, /* on_cur_changed */
- DEVCB_NULL, /* on_hsync_changed */
- DEVCB_DRIVER_LINE_MEMBER(bbc_state,bbc_vsync), /* on_vsync_changed */
+ "screen", /* screen number */
+ 8, /* numbers of pixels per video memory address */
+ NULL, /* begin_update */
+ vid_update_row, /* update_row */
+ NULL, /* end_update */
+ DEVCB_NULL, /* on_de_changed */
+ DEVCB_NULL, /* on_cur_changed */
+ DEVCB_NULL, /* on_hsync_changed */
+ DEVCB_DRIVER_LINE_MEMBER(bbc_state,bbc_vsync), /* on_vsync_changed */
NULL
};