summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/ut88.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/ut88.c')
-rw-r--r--src/mame/video/ut88.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mame/video/ut88.c b/src/mame/video/ut88.c
new file mode 100644
index 00000000000..e5fcae9e678
--- /dev/null
+++ b/src/mame/video/ut88.c
@@ -0,0 +1,44 @@
+// license:BSD-3-Clause
+// copyright-holders:Miodrag Milanovic
+/***************************************************************************
+
+ UT88 video driver by Miodrag Milanovic
+
+ 06/03/2008 Preliminary driver.
+
+****************************************************************************/
+
+
+#include "includes/ut88.h"
+
+
+const gfx_layout ut88_charlayout =
+{
+ 8, 8, /* 8x8 characters */
+ 256, /* 256 characters */
+ 1, /* 1 bits per pixel */
+ {0}, /* no bitplanes; 1 bit per pixel */
+ {0, 1, 2, 3, 4, 5, 6, 7},
+ {0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8},
+ 8*8 /* size of one char */
+};
+
+VIDEO_START_MEMBER(ut88_state,ut88)
+{
+}
+
+UINT32 ut88_state::screen_update_ut88(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+{
+ int x,y;
+
+ for(y = 0; y < 28; y++ )
+ {
+ for(x = 0; x < 64; x++ )
+ {
+ int code = m_p_videoram[ x + y*64 ] & 0x7f;
+ int attr = m_p_videoram[ x+1 + y*64 ] & 0x80;
+ m_gfxdecode->gfx(0)->opaque(bitmap,cliprect, code | attr, 0, 0,0, x*8,y*8);
+ }
+ }
+ return 0;
+}