diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2020-07-11 08:10:58 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2020-07-11 08:10:58 +0200 |
commit | 9eb6686a68ee64c2652a524c076ed956241f0bc7 (patch) | |
tree | b1b5b88ad0c7d38f186727cd3d3b8476468e19f6 | |
parent | 647d4f431ff8fdfe672cadae462f0af105804e37 (diff) |
gigatron.cpp: fixed validation
-rw-r--r-- | src/mame/drivers/gigatron.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/gigatron.cpp b/src/mame/drivers/gigatron.cpp index 5ec4714dc1d..fc338339f37 100644 --- a/src/mame/drivers/gigatron.cpp +++ b/src/mame/drivers/gigatron.cpp @@ -44,7 +44,7 @@ private: void data_map(address_map &map); uint16_t lights_changed; - + //Video Generation stuff uint8_t machineOut; uint8_t row; @@ -54,7 +54,7 @@ private: void blinkenlights(uint8_t data); void video_draw(u8 data); uint8_t inputs(); - + std::unique_ptr<bitmap_ind16> m_bitmap_render; std::unique_ptr<bitmap_ind16> m_bitmap_buffer; @@ -72,26 +72,26 @@ void gigatron_state::video_draw(u8 data) { uint8_t out = data; uint8_t falling = machineOut & ~out; - + if (falling & VSYNC) { row = 0; pixel = 0; } - + if (falling & HSYNC) { col = 0; row++; } - + machineOut = out; - + if ((out & (VSYNC | HSYNC)) != (VSYNC | HSYNC)) { return; } - + if((row >= 0 && row < 480) && (col >= 0 && col < 640)) { //uint16_t *dest; @@ -169,6 +169,7 @@ void gigatron_state::gigatron(machine_config &config) } ROM_START( gigatron ) + ROM_REGION( 0x20000, "maincpu", 0 ) ROM_SYSTEM_BIOS(0, "v5a", "Gigatron ROM V5a") ROMX_LOAD( "gigrom5a.rom", 0x0000, 0x20000, CRC(DCC071A6) SHA1(F82059BA0227FF48E4C687B90C8445DA30213EE2),ROM_BIOS(0)) ROM_SYSTEM_BIOS(1, "v4", "Gigatron ROM V4") |