Previous 15994 Revisions Next

r1916 Tuesday 11th March, 2008 at 19:56:19 UTC by Wilbert Pol
[ZX] Removed dependency on deprecat.h from video/zx.c
[src/mess/includes]zx.h
[src/mess/machine]zx.c
[src/mess/video]zx.c

src/mess/includes/zx.h
r1915r1916
2626VIDEO_START( zx );
2727VIDEO_EOF( zx );
2828
29void zx_ula_bkgnd(int color);
29void zx_ula_bkgnd(running_machine *machine, int color);
3030int zx_ula_r(int offs, int region);
3131
3232extern emu_timer *ula_nmi;
src/mess/video/zx.c
r1915r1916
1717****************************************************************************/
1818
1919#include "driver.h"
20#include "deprecat.h"
2120#include "cpu/z80/z80.h"
2221#include "includes/zx.h"
2322#include "sound/dac.h"
r1915r1916
4039 * (during tape IO or sound output) zx_ula_bkgnd() is used to
4140 * simulate the display of a ZX80/ZX81.
4241 */
43void zx_ula_bkgnd(int color)
42void zx_ula_bkgnd(running_machine *machine, int color)
4443{
4544   if (ula_frame_vsync == 0 && color != old_c)
4645   {
r1915r1916
5958            r.min_x = old_x;
6059            r.max_x = new_x;
6160            r.min_y = r.max_y = y;
62            fillbitmap(bitmap, Machine->pens[color], &r);
61            fillbitmap(bitmap, machine->pens[color], &r);
6362            break;
6463         }
6564         else
6665         {
6766            r.min_x = old_x;
68            r.max_x = Machine->screen[0].visarea.max_x;
67            r.max_x = machine->screen[0].visarea.max_x;
6968            r.min_y = r.max_y = y;
70            fillbitmap(bitmap, Machine->pens[color], &r);
69            fillbitmap(bitmap, machine->pens[color], &r);
7170            old_x = 0;
7271         }
73         if (++y == Machine->screen[0].height)
72         if (++y == machine->screen[0].height)
7473            y = 0;
7574      }
76      old_x = (new_x + 1) % Machine->screen[0].width;
75      old_x = (new_x + 1) % machine->screen[0].width;
7776      old_y = new_y;
7877      old_c = color;
7978      DAC_data_w(0, color ? 255 : 0);
src/mess/machine/zx.c
r1915r1916
8787   }
8888   else
8989   {
90      zx_ula_bkgnd(1);
90      zx_ula_bkgnd(machine, 1);
9191      if (ula_frame_vsync == 2)
9292      {
9393         cpu_spinuntil_time(video_screen_get_time_until_pos(0, machine->screen[0].height - 1, 0));
r1915r1916
135135
136136      if (ula_irq_active)
137137      {
138         zx_ula_bkgnd(0);
138         zx_ula_bkgnd(machine, 0);
139139         ula_irq_active = 0;
140140
141141         LOG_ZX81_IOR("ULA IRQs off");
r1915r1916
200200
201201      if (ula_irq_active)
202202      {
203         zx_ula_bkgnd(0);
203         zx_ula_bkgnd(machine, 0);
204204         ula_irq_active = 0;
205205         LOG_ZX81_IOR("ULA IRQs off");
206206      }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team