Previous 199869 Revisions Next

r26205 Saturday 16th November, 2013 at 19:27:54 UTC by Jürgen Buchmüller
Swap black and white pixels. Shift screen to scanlines 0-807.
[/branches/alto2/src/emu/cpu/alto2]a2disp.c alto2.c
[/branches/alto2/src/mess/drivers]alto2.c

branches/alto2/src/emu/cpu/alto2/alto2.c
r26204r26205
14911491   return "???";
14921492}
14931493
1494#if   ALTO2_DEBUG
14941495void alto2_cpu_device::watch_read(UINT32 addr, UINT32 data)
14951496{
14961497   LOG((LOG_MEM,0,"mem: rd[%06o] = %06o\n", addr, data));
r26204r26205
15001501{
15011502   LOG((LOG_MEM,0,"mem: wr[%06o] = %06o\n", addr, data));
15021503}
1504#endif
15031505
15041506/** @brief fatal exit on unitialized dynamic phase BUS source */
15051507void alto2_cpu_device::fn_bs_bad_0()
branches/alto2/src/emu/cpu/alto2/a2disp.c
r26204r26205
218218            word1 ^= m_dsp.curdata & 0177777;
219219         if (word1 != m_dsp.raw_bitmap[y * ALTO2_DISPLAY_SCANLINE_WORDS + x]) {
220220            m_dsp.raw_bitmap[y * ALTO2_DISPLAY_SCANLINE_WORDS + x] = word1;
221            m_dsp.scanline_dirty[y] = 0;
221            m_dsp.scanline_dirty[y] = 1;
222222         }
223223         x++;
224224         if (x < ALTO2_DISPLAY_VISIBLE_WORDS) {
r26204r26205
229229               word2 ^= m_dsp.curdata & 0177777;
230230            if (word2 != m_dsp.raw_bitmap[y * ALTO2_DISPLAY_SCANLINE_WORDS + x]) {
231231               m_dsp.raw_bitmap[y * ALTO2_DISPLAY_SCANLINE_WORDS + x] = word2;
232               m_dsp.scanline_dirty[y] = 0;
232               m_dsp.scanline_dirty[y] = 1;
233233            }
234234            x++;
235235         }
r26204r26205
241241            word ^= m_dsp.curdata & 0177777;
242242         if (word != m_dsp.raw_bitmap[y * ALTO2_DISPLAY_SCANLINE_WORDS + x]) {
243243            m_dsp.raw_bitmap[y * ALTO2_DISPLAY_SCANLINE_WORDS + x] = word;
244            m_dsp.scanline_dirty[y] = 0;
244            m_dsp.scanline_dirty[y] = 1;
245245         }
246246         x++;
247247      }
r26204r26205
451451   return 0;
452452}
453453
454#define   BLACK   0
455#define   WHITE   1
454#define   BLACK   1
455#define   WHITE   0
456456
457457//! update the internal bitmap to the MAME bitmap.pix16
458458void alto2_cpu_device::screen_update(bitmap_ind16 &bitmap, const rectangle &cliprect)
branches/alto2/src/mess/drivers/alto2.c
r26204r26205
251251
252252   /* video hardware */
253253   MCFG_SCREEN_ADD("screen", RASTER)
254   MCFG_SCREEN_RAW_PARAMS(XTAL_20_16MHz, 768,   0, 606, 875, 150, 958)
254   MCFG_SCREEN_RAW_PARAMS(XTAL_20_16MHz, 768,   0, 606, 875,   0, 808)
255255   MCFG_SCREEN_UPDATE_DRIVER(alto2_state, screen_update)
256256   MCFG_SCREEN_VBLANK_DRIVER(alto2_state, screen_eof_alto2)
257257

Previous 199869 Revisions Next


© 1997-2024 The MAME Team