trunk/src/mess/drivers/plan80.c
| r17842 | r17843 | |
| 24 | 24 | #include "emu.h" |
| 25 | 25 | #include "cpu/i8085/i8085.h" |
| 26 | 26 | |
| 27 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 28 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 29 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 30 | 27 | |
| 31 | 28 | class plan80_state : public driver_device |
| 32 | 29 | { |
| r17842 | r17843 | |
| 149 | 146 | state->membank("boot")->set_entry(0); |
| 150 | 147 | } |
| 151 | 148 | |
| 152 | | MACHINE_RESET_MEMBER( plan80_state ) |
| 149 | void plan80_state::machine_reset() |
| 153 | 150 | { |
| 154 | 151 | membank("boot")->set_entry(1); |
| 155 | 152 | machine().scheduler().timer_set(attotime::from_usec(10), FUNC(plan80_boot)); |
| r17842 | r17843 | |
| 161 | 158 | membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0xf800); |
| 162 | 159 | } |
| 163 | 160 | |
| 164 | | VIDEO_START_MEMBER( plan80_state ) |
| 161 | void plan80_state::video_start() |
| 165 | 162 | { |
| 166 | 163 | m_p_chargen = memregion("chargen")->base(); |
| 167 | 164 | } |
| 168 | 165 | |
| 169 | | SCREEN_UPDATE16_MEMBER( plan80_state ) |
| 166 | UINT32 plan80_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 170 | 167 | { |
| 171 | 168 | UINT8 y,ra,chr,gfx; |
| 172 | 169 | UINT16 sy=0,ma=0,x; |
trunk/src/mess/drivers/tec1.c
| r17842 | r17843 | |
| 76 | 76 | #include "imagedev/cassette.h" |
| 77 | 77 | #include "tec1.lh" |
| 78 | 78 | |
| 79 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 80 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 81 | 79 | |
| 82 | 80 | class tec1_state : public driver_device |
| 83 | 81 | { |
| r17842 | r17843 | |
| 264 | 262 | |
| 265 | 263 | ***************************************************************************/ |
| 266 | 264 | |
| 267 | | MACHINE_START_MEMBER( tec1_state ) |
| 265 | void tec1_state::machine_start() |
| 268 | 266 | { |
| 269 | 267 | m_kbd_timer = machine().scheduler().timer_alloc(FUNC(tec1_kbd_callback)); |
| 270 | 268 | m_kbd_timer->adjust( attotime::zero, 0, attotime::from_hz(500) ); |
| 271 | 269 | } |
| 272 | 270 | |
| 273 | | MACHINE_RESET_MEMBER( tec1_state ) |
| 271 | void tec1_state::machine_reset() |
| 274 | 272 | { |
| 275 | 273 | m_kbd = 0; |
| 276 | 274 | } |
trunk/src/mess/drivers/mycom.c
| r17842 | r17843 | |
| 57 | 57 | #include "imagedev/flopdrv.h" |
| 58 | 58 | #include "formats/basicdsk.h" |
| 59 | 59 | |
| 60 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 61 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 62 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 63 | 60 | #define MSM5832RS_TAG "rtc" |
| 64 | 61 | |
| 65 | 62 | class mycom_state : public driver_device |
| r17842 | r17843 | |
| 117 | 114 | |
| 118 | 115 | |
| 119 | 116 | |
| 120 | | VIDEO_START_MEMBER( mycom_state ) |
| 117 | void mycom_state::video_start() |
| 121 | 118 | { |
| 122 | 119 | m_p_videoram = memregion("vram")->base(); |
| 123 | 120 | m_p_chargen = memregion("chargen")->base(); |
| r17842 | r17843 | |
| 566 | 563 | }; |
| 567 | 564 | |
| 568 | 565 | |
| 569 | | MACHINE_START_MEMBER(mycom_state) |
| 566 | void mycom_state::machine_start() |
| 570 | 567 | { |
| 571 | 568 | m_p_ram = memregion("maincpu")->base(); |
| 572 | 569 | } |
| 573 | 570 | |
| 574 | | MACHINE_RESET_MEMBER(mycom_state) |
| 571 | void mycom_state::machine_reset() |
| 575 | 572 | { |
| 576 | 573 | membank("boot")->set_entry(1); |
| 577 | 574 | m_upper_sw = 0x10000; |
trunk/src/mess/drivers/beehive.c
| r17842 | r17843 | |
| 21 | 21 | #include "emu.h" |
| 22 | 22 | #include "cpu/i8085/i8085.h" |
| 23 | 23 | |
| 24 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 25 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 26 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 27 | 24 | |
| 28 | 25 | class beehive_state : public driver_device |
| 29 | 26 | { |
| r17842 | r17843 | |
| 226 | 223 | INPUT_PORTS_END |
| 227 | 224 | |
| 228 | 225 | |
| 229 | | MACHINE_RESET_MEMBER(beehive_state) |
| 226 | void beehive_state::machine_reset() |
| 230 | 227 | { |
| 231 | 228 | } |
| 232 | 229 | |
| 233 | | VIDEO_START_MEMBER( beehive_state ) |
| 230 | void beehive_state::video_start() |
| 234 | 231 | { |
| 235 | 232 | m_p_chargen = memregion("chargen")->base(); |
| 236 | 233 | } |
| 237 | 234 | |
| 238 | 235 | /* This system appears to have inline attribute bytes of unknown meaning. |
| 239 | 236 | Currently they are ignored. */ |
| 240 | | SCREEN_UPDATE16_MEMBER( beehive_state ) |
| 237 | UINT32 beehive_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 241 | 238 | { |
| 242 | 239 | UINT16 cursor_pos = (m_p_videoram[0xcaf] | (m_p_videoram[0xcb0] << 8)) & 0xfff; |
| 243 | 240 | UINT16 p_linelist; |
trunk/src/mess/drivers/phunsy.c
| r17842 | r17843 | |
| 23 | 23 | #include "imagedev/cassette.h" |
| 24 | 24 | #include "sound/wave.h" |
| 25 | 25 | |
| 26 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 27 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 28 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 29 | 26 | |
| 30 | 27 | #define LOG 1 |
| 31 | 28 | |
| r17842 | r17843 | |
| 198 | 195 | }; |
| 199 | 196 | |
| 200 | 197 | |
| 201 | | MACHINE_RESET_MEMBER(phunsy_state) |
| 198 | void phunsy_state::machine_reset() |
| 202 | 199 | { |
| 203 | 200 | membank( "bank1" )->set_base( m_ram_1800 ); |
| 204 | 201 | membank( "bank2" )->set_base( memregion("ram_4000")->base() ); |
| r17842 | r17843 | |
| 220 | 217 | } |
| 221 | 218 | |
| 222 | 219 | |
| 223 | | VIDEO_START_MEMBER( phunsy_state ) |
| 220 | void phunsy_state::video_start() |
| 224 | 221 | { |
| 225 | 222 | m_p_chargen = memregion( "chargen" )->base(); |
| 226 | 223 | } |
| 227 | 224 | |
| 228 | 225 | |
| 229 | | SCREEN_UPDATE16_MEMBER( phunsy_state ) |
| 226 | UINT32 phunsy_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 230 | 227 | { |
| 231 | 228 | UINT8 y,ra,chr,gfx,col; |
| 232 | 229 | UINT16 sy=0,ma=0,x; |
trunk/src/mess/drivers/sorcerer.c
| r17842 | r17843 | |
| 342 | 342 | GFXDECODE_ENTRY( "maincpu", 0xf800, sorcerer_charlayout, 0, 1 ) |
| 343 | 343 | GFXDECODE_END |
| 344 | 344 | |
| 345 | | VIDEO_START_MEMBER( sorcerer_state ) |
| 345 | void sorcerer_state::video_start() |
| 346 | 346 | { |
| 347 | 347 | m_p_videoram = memregion("maincpu")->base()+0xf000; |
| 348 | 348 | } |
| 349 | 349 | |
| 350 | | SCREEN_UPDATE_MEMBER( sorcerer_state ) |
| 350 | UINT32 sorcerer_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 351 | 351 | { |
| 352 | 352 | UINT8 y,ra,chr,gfx; |
| 353 | 353 | UINT16 sy=0,ma=0x80,x; |
trunk/src/mess/drivers/a7000.c
| r17842 | r17843 | |
| 15 | 15 | #include "cpu/arm7/arm7.h" |
| 16 | 16 | #include "cpu/arm7/arm7core.h" |
| 17 | 17 | |
| 18 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 19 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 20 | 18 | |
| 21 | 19 | class a7000_state : public driver_device |
| 22 | 20 | { |
| r17842 | r17843 | |
| 766 | 764 | static INPUT_PORTS_START( a7000 ) |
| 767 | 765 | INPUT_PORTS_END |
| 768 | 766 | |
| 769 | | MACHINE_START_MEMBER( a7000_state ) |
| 767 | void a7000_state::machine_start() |
| 770 | 768 | { |
| 771 | 769 | m_IOMD_timer[0] = machine().scheduler().timer_alloc(FUNC(IOMD_timer0_callback)); |
| 772 | 770 | m_IOMD_timer[1] = machine().scheduler().timer_alloc(FUNC(IOMD_timer1_callback)); |
| r17842 | r17843 | |
| 775 | 773 | m_io_id = 0xd4e7; |
| 776 | 774 | } |
| 777 | 775 | |
| 778 | | MACHINE_RESET_MEMBER( a7000_state ) |
| 776 | void a7000_state::machine_reset() |
| 779 | 777 | { |
| 780 | 778 | m_IOMD_IO_ctrl = 0x0b | 0x34; //bit 0,1 and 3 set high on reset plus 2,4,5 always high |
| 781 | 779 | // m_IRQ_status_A = 0x10; // set POR bit ON |
trunk/src/mess/drivers/fk1.c
| r17842 | r17843 | |
| 13 | 13 | #include "machine/i8251.h" |
| 14 | 14 | #include "machine/ram.h" |
| 15 | 15 | |
| 16 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 17 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 18 | 16 | |
| 19 | 17 | class fk1_state : public driver_device |
| 20 | 18 | { |
| r17842 | r17843 | |
| 423 | 421 | } |
| 424 | 422 | |
| 425 | 423 | |
| 426 | | MACHINE_RESET_MEMBER( fk1_state ) |
| 424 | void fk1_state::machine_reset() |
| 427 | 425 | { |
| 428 | 426 | address_space *space = m_maincpu->space(AS_PROGRAM); |
| 429 | 427 | UINT8 *ram = machine().device<ram_device>(RAM_TAG)->pointer(); |
| r17842 | r17843 | |
| 437 | 435 | machine().device("maincpu")->execute().set_irq_acknowledge_callback(fk1_irq_callback); |
| 438 | 436 | } |
| 439 | 437 | |
| 440 | | SCREEN_UPDATE16_MEMBER( fk1_state ) |
| 438 | UINT32 fk1_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 441 | 439 | { |
| 442 | 440 | UINT8 code; |
| 443 | 441 | int y, x, b; |
trunk/src/mess/drivers/mes.c
| r17842 | r17843 | |
| 9 | 9 | #include "emu.h" |
| 10 | 10 | #include "cpu/z80/z80.h" |
| 11 | 11 | |
| 12 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 13 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 14 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 15 | 12 | |
| 16 | 13 | class mes_state : public driver_device |
| 17 | 14 | { |
| r17842 | r17843 | |
| 46 | 43 | static INPUT_PORTS_START( mes ) |
| 47 | 44 | INPUT_PORTS_END |
| 48 | 45 | |
| 49 | | MACHINE_RESET_MEMBER(mes_state) |
| 46 | void mes_state::machine_reset() |
| 50 | 47 | { |
| 51 | 48 | } |
| 52 | 49 | |
| 53 | | VIDEO_START_MEMBER( mes_state ) |
| 50 | void mes_state::video_start() |
| 54 | 51 | { |
| 55 | 52 | m_p_chargen = memregion("chargen")->base(); |
| 56 | 53 | } |
| 57 | 54 | |
| 58 | 55 | /* This system appears to have 2 screens. Not implemented. |
| 59 | 56 | Also the screen dimensions are a guess. */ |
| 60 | | SCREEN_UPDATE16_MEMBER( mes_state ) |
| 57 | UINT32 mes_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 61 | 58 | { |
| 62 | 59 | //static UINT8 framecnt=0; |
| 63 | 60 | UINT8 y,ra,chr,gfx; |
trunk/src/mess/drivers/homez80.c
| r17842 | r17843 | |
| 21 | 21 | #include "emu.h" |
| 22 | 22 | #include "cpu/z80/z80.h" |
| 23 | 23 | |
| 24 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 25 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 26 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 27 | 24 | |
| 28 | 25 | class homez80_state : public driver_device |
| 29 | 26 | { |
| r17842 | r17843 | |
| 213 | 210 | INPUT_PORTS_END |
| 214 | 211 | |
| 215 | 212 | |
| 216 | | MACHINE_RESET_MEMBER( homez80_state ) |
| 213 | void homez80_state::machine_reset() |
| 217 | 214 | { |
| 218 | 215 | m_irq = 0; |
| 219 | 216 | } |
| 220 | 217 | |
| 221 | | VIDEO_START_MEMBER( homez80_state ) |
| 218 | void homez80_state::video_start() |
| 222 | 219 | { |
| 223 | 220 | m_p_chargen = memregion("chargen")->base(); |
| 224 | 221 | } |
| 225 | 222 | |
| 226 | | SCREEN_UPDATE16_MEMBER( homez80_state ) |
| 223 | UINT32 homez80_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 227 | 224 | { |
| 228 | 225 | UINT8 y,ra,chr,gfx; |
| 229 | 226 | UINT16 sy=0,ma=0,x; |
trunk/src/mess/drivers/nanos.c
| r17842 | r17843 | |
| 17 | 17 | #include "formats/basicdsk.h" |
| 18 | 18 | #include "machine/ram.h" |
| 19 | 19 | |
| 20 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 21 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 22 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 23 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 24 | 20 | |
| 25 | 21 | class nanos_state : public driver_device |
| 26 | 22 | { |
| r17842 | r17843 | |
| 263 | 259 | INPUT_PORTS_END |
| 264 | 260 | |
| 265 | 261 | |
| 266 | | VIDEO_START_MEMBER( nanos_state ) |
| 262 | void nanos_state::video_start() |
| 267 | 263 | { |
| 268 | 264 | m_p_chargen = memregion("chargen")->base(); |
| 269 | 265 | } |
| 270 | 266 | |
| 271 | | SCREEN_UPDATE16_MEMBER( nanos_state ) |
| 267 | UINT32 nanos_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 272 | 268 | { |
| 273 | 269 | // static UINT8 framecnt=0; |
| 274 | 270 | UINT8 y,ra,chr,gfx; |
| r17842 | r17843 | |
| 436 | 432 | } |
| 437 | 433 | } |
| 438 | 434 | |
| 439 | | MACHINE_START_MEMBER(nanos_state) |
| 435 | void nanos_state::machine_start() |
| 440 | 436 | { |
| 441 | 437 | m_key_pressed = 0xff; |
| 442 | 438 | } |
| 443 | 439 | |
| 444 | | MACHINE_RESET_MEMBER(nanos_state) |
| 440 | void nanos_state::machine_reset() |
| 445 | 441 | { |
| 446 | 442 | address_space *space = machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 447 | 443 | |
trunk/src/mess/drivers/k8915.c
| r17842 | r17843 | |
| 12 | 12 | #include "cpu/z80/z80.h" |
| 13 | 13 | #include "machine/keyboard.h" |
| 14 | 14 | |
| 15 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 16 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 17 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 18 | 15 | |
| 19 | 16 | class k8915_state : public driver_device |
| 20 | 17 | { |
| r17842 | r17843 | |
| 81 | 78 | static INPUT_PORTS_START( k8915 ) |
| 82 | 79 | INPUT_PORTS_END |
| 83 | 80 | |
| 84 | | MACHINE_RESET_MEMBER(k8915_state) |
| 81 | void k8915_state::machine_reset() |
| 85 | 82 | { |
| 86 | 83 | membank("boot")->set_entry(1); |
| 87 | 84 | } |
| r17842 | r17843 | |
| 92 | 89 | membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0x10000); |
| 93 | 90 | } |
| 94 | 91 | |
| 95 | | VIDEO_START_MEMBER( k8915_state ) |
| 92 | void k8915_state::video_start() |
| 96 | 93 | { |
| 97 | 94 | m_p_chargen = memregion("chargen")->base(); |
| 98 | 95 | } |
| 99 | 96 | |
| 100 | | SCREEN_UPDATE16_MEMBER( k8915_state ) |
| 97 | UINT32 k8915_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 101 | 98 | { |
| 102 | 99 | UINT8 y,ra,chr,gfx; |
| 103 | 100 | UINT16 sy=0,ma=0,x; |
trunk/src/mess/drivers/z9001.c
| r17842 | r17843 | |
| 37 | 37 | // temporary |
| 38 | 38 | #include "machine/keyboard.h" |
| 39 | 39 | |
| 40 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 41 | | //#define MACHINE_START_MEMBER(name) void name::machine_start() |
| 42 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 43 | | |
| 40 | // |
| 44 | 41 | class z9001_state : public driver_device |
| 45 | 42 | { |
| 46 | 43 | public: |
| r17842 | r17843 | |
| 150 | 147 | state->m_maincpu->space(AS_PROGRAM)->write_byte(0x006a, 0); |
| 151 | 148 | } |
| 152 | 149 | |
| 153 | | MACHINE_RESET_MEMBER( z9001_state ) |
| 150 | void z9001_state::machine_reset() |
| 154 | 151 | { |
| 155 | 152 | beep_set_frequency(m_beeper, 800); |
| 156 | 153 | m_maincpu->set_state_int(Z80_PC, 0xf000); |
| 157 | 154 | } |
| 158 | 155 | |
| 159 | | VIDEO_START_MEMBER( z9001_state ) |
| 156 | void z9001_state::video_start() |
| 160 | 157 | { |
| 161 | 158 | m_p_chargen = memregion("chargen")->base(); |
| 162 | 159 | } |
trunk/src/mess/drivers/c10.c
| r17842 | r17843 | |
| 13 | 13 | #include "emu.h" |
| 14 | 14 | #include "cpu/z80/z80.h" |
| 15 | 15 | |
| 16 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 17 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 18 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 19 | 16 | |
| 20 | 17 | class c10_state : public driver_device |
| 21 | 18 | { |
| r17842 | r17843 | |
| 60 | 57 | state->membank("boot")->set_entry(0); |
| 61 | 58 | } |
| 62 | 59 | |
| 63 | | MACHINE_RESET_MEMBER(c10_state) |
| 60 | void c10_state::machine_reset() |
| 64 | 61 | { |
| 65 | 62 | membank("boot")->set_entry(1); |
| 66 | 63 | machine().scheduler().timer_set(attotime::from_usec(4), FUNC(c10_reset)); |
| 67 | 64 | } |
| 68 | 65 | |
| 69 | | VIDEO_START_MEMBER( c10_state ) |
| 66 | void c10_state::video_start() |
| 70 | 67 | { |
| 71 | 68 | m_p_chargen = memregion("chargen")->base(); |
| 72 | 69 | } |
| 73 | 70 | |
| 74 | 71 | /* This system appears to have inline attribute bytes of unknown meaning. |
| 75 | 72 | Currently they are ignored. The word at FAB5 looks like it might be cursor location. */ |
| 76 | | SCREEN_UPDATE16_MEMBER( c10_state ) |
| 73 | UINT32 c10_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 77 | 74 | { |
| 78 | 75 | //static UINT8 framecnt=0; |
| 79 | 76 | UINT8 y,ra,chr,gfx; |
trunk/src/mess/drivers/czk80.c
| r17842 | r17843 | |
| 17 | 17 | #include "cpu/z80/z80.h" |
| 18 | 18 | #include "machine/terminal.h" |
| 19 | 19 | |
| 20 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 21 | 20 | |
| 22 | 21 | class czk80_state : public driver_device |
| 23 | 22 | { |
| r17842 | r17843 | |
| 74 | 73 | static INPUT_PORTS_START( czk80 ) |
| 75 | 74 | INPUT_PORTS_END |
| 76 | 75 | |
| 77 | | MACHINE_RESET_MEMBER(czk80_state) |
| 76 | void czk80_state::machine_reset() |
| 78 | 77 | { |
| 79 | 78 | UINT8* bios = memregion("maincpu")->base() + 0xe000; |
| 80 | 79 | memcpy(m_p_ram, bios, 0x2000); |
trunk/src/mess/drivers/slc1.c
| r17842 | r17843 | |
| 51 | 51 | #include "sound/speaker.h" |
| 52 | 52 | #include "slc1.lh" |
| 53 | 53 | |
| 54 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 55 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 56 | 54 | |
| 57 | 55 | class slc1_state : public driver_device |
| 58 | 56 | { |
| r17842 | r17843 | |
| 162 | 160 | |
| 163 | 161 | ***************************************************************************/ |
| 164 | 162 | |
| 165 | | MACHINE_START_MEMBER( slc1_state ) |
| 163 | void slc1_state::machine_start() |
| 166 | 164 | { |
| 167 | 165 | } |
| 168 | 166 | |
| 169 | | MACHINE_RESET_MEMBER( slc1_state ) |
| 167 | void slc1_state::machine_reset() |
| 170 | 168 | { |
| 171 | 169 | } |
| 172 | 170 | |
trunk/src/mess/drivers/babbage.c
| r17842 | r17843 | |
| 27 | 27 | #include "cpu/z80/z80daisy.h" |
| 28 | 28 | #include "babbage.lh" |
| 29 | 29 | |
| 30 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 31 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 32 | 30 | #define MAIN_CLOCK 25e5 |
| 33 | 31 | |
| 34 | 32 | class babbage_state : public driver_device |
| r17842 | r17843 | |
| 68 | 66 | |
| 69 | 67 | ***************************************************************************/ |
| 70 | 68 | |
| 71 | | MACHINE_START_MEMBER( babbage_state ) |
| 69 | void babbage_state::machine_start() |
| 72 | 70 | { |
| 73 | 71 | } |
| 74 | 72 | |
| 75 | | MACHINE_RESET_MEMBER( babbage_state ) |
| 73 | void babbage_state::machine_reset() |
| 76 | 74 | { |
| 77 | 75 | } |
| 78 | 76 | |
trunk/src/mess/drivers/a5105.c
| r17842 | r17843 | |
| 30 | 30 | #include "formats/basicdsk.h" |
| 31 | 31 | |
| 32 | 32 | |
| 33 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 34 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 35 | 33 | |
| 36 | 34 | class a5105_state : public driver_device |
| 37 | 35 | { |
| r17842 | r17843 | |
| 453 | 451 | INPUT_PORTS_END |
| 454 | 452 | |
| 455 | 453 | |
| 456 | | MACHINE_RESET_MEMBER(a5105_state) |
| 454 | void a5105_state::machine_reset() |
| 457 | 455 | { |
| 458 | 456 | address_space *space = m_maincpu->space(AS_PROGRAM); |
| 459 | 457 | a5105_ab_w(*space, 0, 9); // turn motor off |
| r17842 | r17843 | |
| 500 | 498 | } |
| 501 | 499 | } |
| 502 | 500 | |
| 503 | | VIDEO_START_MEMBER( a5105_state ) |
| 501 | void a5105_state::video_start() |
| 504 | 502 | { |
| 505 | 503 | // find memory regions |
| 506 | 504 | m_char_rom = memregion("pcg")->base(); |
trunk/src/mess/drivers/okean240.c
| r17842 | r17843 | |
| 52 | 52 | #include "machine/keyboard.h" |
| 53 | 53 | #include "machine/terminal.h" |
| 54 | 54 | |
| 55 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 56 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 57 | 55 | |
| 58 | 56 | class okean240_state : public driver_device |
| 59 | 57 | { |
| r17842 | r17843 | |
| 363 | 361 | state->membank("boot")->set_entry(0); |
| 364 | 362 | } |
| 365 | 363 | |
| 366 | | MACHINE_RESET_MEMBER( okean240_state ) |
| 364 | void okean240_state::machine_reset() |
| 367 | 365 | { |
| 368 | 366 | machine().scheduler().timer_set(attotime::from_usec(10), FUNC(okean240_boot)); |
| 369 | 367 | membank("boot")->set_entry(1); |
| r17842 | r17843 | |
| 388 | 386 | membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0xe000); |
| 389 | 387 | } |
| 390 | 388 | |
| 391 | | VIDEO_START_MEMBER( okean240_state ) |
| 389 | void okean240_state::video_start() |
| 392 | 390 | { |
| 393 | 391 | } |
| 394 | 392 | |
trunk/src/mess/drivers/univac.c
| r17842 | r17843 | |
| 16 | 16 | #include "emu.h" |
| 17 | 17 | #include "cpu/z80/z80.h" |
| 18 | 18 | |
| 19 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 20 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 21 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 22 | 19 | |
| 23 | 20 | class univac_state : public driver_device |
| 24 | 21 | { |
| r17842 | r17843 | |
| 79 | 76 | INPUT_PORTS_END |
| 80 | 77 | |
| 81 | 78 | |
| 82 | | MACHINE_RESET_MEMBER(univac_state) |
| 79 | void univac_state::machine_reset() |
| 83 | 80 | { |
| 84 | 81 | m_screen_num = 0; |
| 85 | 82 | } |
| 86 | 83 | |
| 87 | | VIDEO_START_MEMBER(univac_state) |
| 84 | void univac_state::video_start() |
| 88 | 85 | { |
| 89 | 86 | m_p_chargen = memregion("chargen")->base(); |
| 90 | 87 | } |
| 91 | 88 | |
| 92 | | SCREEN_UPDATE16_MEMBER(univac_state) |
| 89 | UINT32 univac_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 93 | 90 | { |
| 94 | 91 | UINT8 y,ra,chr,gfx; |
| 95 | 92 | UINT16 sy=0,ma=0,x; |
trunk/src/mess/drivers/dim68k.c
| r17842 | r17843 | |
| 36 | 36 | #include "sound/speaker.h" |
| 37 | 37 | #include "video/mc6845.h" |
| 38 | 38 | |
| 39 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 40 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 41 | 39 | |
| 42 | 40 | class dim68k_state : public driver_device |
| 43 | 41 | { |
| r17842 | r17843 | |
| 200 | 198 | INPUT_PORTS_END |
| 201 | 199 | |
| 202 | 200 | |
| 203 | | MACHINE_RESET_MEMBER(dim68k_state) |
| 201 | void dim68k_state::machine_reset() |
| 204 | 202 | { |
| 205 | 203 | UINT8* ROM = memregion("bootrom")->base(); |
| 206 | 204 | |
| r17842 | r17843 | |
| 209 | 207 | machine().device("maincpu")->reset(); |
| 210 | 208 | } |
| 211 | 209 | |
| 212 | | VIDEO_START_MEMBER( dim68k_state ) |
| 210 | void dim68k_state::video_start() |
| 213 | 211 | { |
| 214 | 212 | m_p_chargen = memregion("chargen")->base(); |
| 215 | 213 | } |
trunk/src/mess/drivers/rx78.c
| r17842 | r17843 | |
| 50 | 50 | #include "sound/wave.h" |
| 51 | 51 | #include "machine/ram.h" |
| 52 | 52 | |
| 53 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 54 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 55 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 56 | 53 | |
| 57 | 54 | class rx78_state : public driver_device |
| 58 | 55 | { |
| r17842 | r17843 | |
| 109 | 106 | } |
| 110 | 107 | |
| 111 | 108 | |
| 112 | | VIDEO_START_MEMBER( rx78_state ) |
| 109 | void rx78_state::video_start() |
| 113 | 110 | { |
| 114 | 111 | } |
| 115 | 112 | |
| 116 | | SCREEN_UPDATE16_MEMBER( rx78_state ) |
| 113 | UINT32 rx78_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 117 | 114 | { |
| 118 | 115 | UINT8 *vram = memregion("vram")->base(); |
| 119 | 116 | int x,y,count; |
| r17842 | r17843 | |
| 411 | 408 | INPUT_PORTS_END |
| 412 | 409 | |
| 413 | 410 | |
| 414 | | MACHINE_RESET_MEMBER(rx78_state) |
| 411 | void rx78_state::machine_reset() |
| 415 | 412 | { |
| 416 | 413 | } |
| 417 | 414 | |
trunk/src/mess/drivers/cd2650.c
| r17842 | r17843 | |
| 30 | 30 | #include "imagedev/cassette.h" |
| 31 | 31 | #include "sound/wave.h" |
| 32 | 32 | |
| 33 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 34 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 35 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 36 | 33 | |
| 37 | 34 | class cd2650_state : public driver_device |
| 38 | 35 | { |
| r17842 | r17843 | |
| 96 | 93 | INPUT_PORTS_END |
| 97 | 94 | |
| 98 | 95 | |
| 99 | | MACHINE_RESET_MEMBER(cd2650_state) |
| 96 | void cd2650_state::machine_reset() |
| 100 | 97 | { |
| 101 | 98 | m_term_data = 0x80; |
| 102 | 99 | } |
| 103 | 100 | |
| 104 | | VIDEO_START_MEMBER(cd2650_state) |
| 101 | void cd2650_state::video_start() |
| 105 | 102 | { |
| 106 | 103 | m_p_chargen = memregion("chargen")->base(); |
| 107 | 104 | } |
| 108 | 105 | |
| 109 | | SCREEN_UPDATE16_MEMBER(cd2650_state) |
| 106 | UINT32 cd2650_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 110 | 107 | { |
| 111 | 108 | /* The video is unusual in that the characters in each line are spaced at 16 bytes in memory, |
| 112 | 109 | thus line 1 starts at 1000, line 2 at 1001, etc. There are 16 lines of 80 characters. |
trunk/src/mess/drivers/pegasus.c
| r17842 | r17843 | |
| 44 | 44 | #include "sound/wave.h" |
| 45 | 45 | |
| 46 | 46 | |
| 47 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 48 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 49 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 50 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 51 | 47 | |
| 52 | 48 | class pegasus_state : public driver_device |
| 53 | 49 | { |
| r17842 | r17843 | |
| 318 | 314 | }; |
| 319 | 315 | |
| 320 | 316 | |
| 321 | | VIDEO_START_MEMBER( pegasus_state ) |
| 317 | void pegasus_state::video_start() |
| 322 | 318 | { |
| 323 | 319 | m_p_chargen = memregion("chargen")->base(); |
| 324 | 320 | } |
| r17842 | r17843 | |
| 336 | 332 | }; |
| 337 | 333 | |
| 338 | 334 | |
| 339 | | SCREEN_UPDATE16_MEMBER( pegasus_state ) |
| 335 | UINT32 pegasus_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 340 | 336 | { |
| 341 | 337 | UINT8 y,ra,chr,gfx,inv; |
| 342 | 338 | UINT16 sy=0,ma=0,x; |
| r17842 | r17843 | |
| 476 | 472 | return IMAGE_INIT_PASS; |
| 477 | 473 | } |
| 478 | 474 | |
| 479 | | MACHINE_START_MEMBER( pegasus_state ) |
| 475 | void pegasus_state::machine_start() |
| 480 | 476 | { |
| 481 | 477 | m_p_pcgram = memregion("pcg")->base(); |
| 482 | 478 | } |
| 483 | 479 | |
| 484 | | MACHINE_RESET_MEMBER( pegasus_state ) |
| 480 | void pegasus_state::machine_reset() |
| 485 | 481 | { |
| 486 | 482 | m_kbd_row = 0; |
| 487 | 483 | m_kbd_irq = 1; |
trunk/src/mess/drivers/jupiter.c
| r17842 | r17843 | |
| 16 | 16 | |
| 17 | 17 | ***************************************************************************/ |
| 18 | 18 | |
| 19 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 20 | | #define SCREEN_UPDATE_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 21 | | |
| 22 | 19 | #include "emu.h" |
| 23 | 20 | #include "cpu/m6800/m6800.h" |
| 24 | 21 | #include "cpu/z80/z80.h" |
| r17842 | r17843 | |
| 131 | 128 | // VIDEO |
| 132 | 129 | //************************************************************************** |
| 133 | 130 | |
| 134 | | VIDEO_START_MEMBER( jupiter3_state ) |
| 131 | void jupiter3_state::video_start() |
| 135 | 132 | { |
| 136 | 133 | m_p_chargen = memregion("chargen")->base(); |
| 137 | 134 | } |
| 138 | 135 | |
| 139 | | SCREEN_UPDATE_MEMBER( jupiter3_state ) |
| 136 | UINT32 jupiter3_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 140 | 137 | { |
| 141 | 138 | UINT8 y,ra,chr,gfx; |
| 142 | 139 | UINT16 sy=0,ma=0,x; |
trunk/src/mess/drivers/iq151.c
| r17842 | r17843 | |
| 59 | 59 | #include "video/iq151_video32.h" |
| 60 | 60 | #include "video/iq151_video64.h" |
| 61 | 61 | |
| 62 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 63 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 64 | 62 | |
| 65 | 63 | |
| 66 | 64 | class iq151_state : public driver_device |
| r17842 | r17843 | |
| 362 | 360 | m_carts[4] = machine().device<iq151cart_slot_device>("slot5"); |
| 363 | 361 | } |
| 364 | 362 | |
| 365 | | MACHINE_RESET_MEMBER( iq151_state ) |
| 363 | void iq151_state::machine_reset() |
| 366 | 364 | { |
| 367 | 365 | membank("boot")->set_entry(0); |
| 368 | 366 | |
| r17842 | r17843 | |
| 370 | 368 | } |
| 371 | 369 | |
| 372 | 370 | // this machine don't have a built-in video controller, but uses external cartridge |
| 373 | | SCREEN_UPDATE16_MEMBER( iq151_state ) |
| 371 | UINT32 iq151_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 374 | 372 | { |
| 375 | 373 | bitmap.fill(0, cliprect); |
| 376 | 374 | |
trunk/src/mess/drivers/h19.c
| r17842 | r17843 | |
| 36 | 36 | #include "machine/ins8250.h" |
| 37 | 37 | #include "machine/keyboard.h" |
| 38 | 38 | |
| 39 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 40 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 41 | 39 | |
| 42 | 40 | #define H19_CLOCK (XTAL_12_288MHz / 6) |
| 43 | 41 | #define H19_BEEP_FRQ (H19_CLOCK / 1024) |
| r17842 | r17843 | |
| 290 | 288 | INPUT_PORTS_END |
| 291 | 289 | |
| 292 | 290 | |
| 293 | | MACHINE_RESET_MEMBER(h19_state) |
| 291 | void h19_state::machine_reset() |
| 294 | 292 | { |
| 295 | 293 | beep_set_frequency(m_beep, H19_BEEP_FRQ); |
| 296 | 294 | } |
| 297 | 295 | |
| 298 | | VIDEO_START_MEMBER( h19_state ) |
| 296 | void h19_state::video_start() |
| 299 | 297 | { |
| 300 | 298 | m_p_chargen = memregion("chargen")->base(); |
| 301 | 299 | } |
trunk/src/mess/drivers/ccs2810.c
| r17842 | r17843 | |
| 35 | 35 | #include "machine/ins8250.h" |
| 36 | 36 | #include "machine/terminal.h" |
| 37 | 37 | |
| 38 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 39 | 38 | |
| 40 | 39 | class ccs2810_state : public driver_device |
| 41 | 40 | { |
| r17842 | r17843 | |
| 110 | 109 | DEVCB_DRIVER_MEMBER(ccs2810_state, kbd_put) |
| 111 | 110 | }; |
| 112 | 111 | |
| 113 | | MACHINE_RESET_MEMBER(ccs2810_state) |
| 112 | void ccs2810_state::machine_reset() |
| 114 | 113 | { |
| 115 | 114 | m_maincpu->set_state_int(Z80_PC, 0xf000); |
| 116 | 115 | m_26_count = 0x41; |
trunk/src/mess/drivers/zrt80.c
| r17842 | r17843 | |
| 21 | 21 | #include "machine/keyboard.h" |
| 22 | 22 | #include "sound/beep.h" |
| 23 | 23 | |
| 24 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 25 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 26 | 24 | |
| 27 | 25 | class zrt80_state : public driver_device |
| 28 | 26 | { |
| r17842 | r17843 | |
| 181 | 179 | INPUT_PORTS_END |
| 182 | 180 | |
| 183 | 181 | |
| 184 | | MACHINE_RESET_MEMBER( zrt80_state ) |
| 182 | void zrt80_state::machine_reset() |
| 185 | 183 | { |
| 186 | 184 | beep_set_frequency(m_beep, 800); |
| 187 | 185 | m_term_data = 0; |
| 188 | 186 | } |
| 189 | 187 | |
| 190 | | VIDEO_START_MEMBER( zrt80_state ) |
| 188 | void zrt80_state::video_start() |
| 191 | 189 | { |
| 192 | 190 | m_p_chargen = memregion("chargen")->base(); |
| 193 | 191 | } |
trunk/src/mess/drivers/ptcsol.c
| r17842 | r17843 | |
| 107 | 107 | #include "imagedev/cassette.h" |
| 108 | 108 | #include "machine/ay31015.h" |
| 109 | 109 | |
| 110 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 111 | | #define MACHINE_START_MEMBER(name) void name::machine_start() |
| 112 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 113 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 114 | 110 | |
| 115 | 111 | typedef struct { |
| 116 | 112 | struct { |
| r17842 | r17843 | |
| 548 | 544 | state->membank("boot")->set_entry(0); |
| 549 | 545 | } |
| 550 | 546 | |
| 551 | | MACHINE_START_MEMBER( sol20_state ) |
| 547 | void sol20_state::machine_start() |
| 552 | 548 | { |
| 553 | 549 | m_cassette_timer = machine().scheduler().timer_alloc(FUNC(sol20_cassette_tc)); |
| 554 | 550 | } |
| 555 | 551 | |
| 556 | | MACHINE_RESET_MEMBER( sol20_state ) |
| 552 | void sol20_state::machine_reset() |
| 557 | 553 | { |
| 558 | 554 | UINT8 data = 0, s_count = 0; |
| 559 | 555 | int s_clock; |
| r17842 | r17843 | |
| 611 | 607 | membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0xc000); |
| 612 | 608 | } |
| 613 | 609 | |
| 614 | | VIDEO_START_MEMBER( sol20_state ) |
| 610 | void sol20_state::video_start() |
| 615 | 611 | { |
| 616 | 612 | m_p_chargen = memregion("chargen")->base(); |
| 617 | 613 | } |
| 618 | 614 | |
| 619 | | SCREEN_UPDATE16_MEMBER( sol20_state ) |
| 615 | UINT32 sol20_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 620 | 616 | { |
| 621 | 617 | // Visible screen is 64 x 16, with start position controlled by scroll register. |
| 622 | 618 | // Each character is 9 pixels wide (blank ones at the right) and 13 lines deep. |
trunk/src/mess/drivers/alphatro.c
| r17842 | r17843 | |
| 30 | 30 | |
| 31 | 31 | #define MAIN_CLOCK XTAL_4MHz |
| 32 | 32 | |
| 33 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 34 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 35 | 33 | |
| 36 | 34 | class alphatro_state : public driver_device |
| 37 | 35 | { |
| r17842 | r17843 | |
| 133 | 131 | m_cass->output( (state) ? 0.8 : -0.8); |
| 134 | 132 | } |
| 135 | 133 | |
| 136 | | VIDEO_START_MEMBER( alphatro_state ) |
| 134 | void alphatro_state::video_start() |
| 137 | 135 | { |
| 138 | 136 | m_p_chargen = memregion("chargen")->base(); |
| 139 | 137 | } |
trunk/src/mess/drivers/h8.c
| r17842 | r17843 | |
| 20 | 20 | #include "sound/beep.h" |
| 21 | 21 | #include "h8.lh" |
| 22 | 22 | |
| 23 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 24 | 23 | |
| 25 | 24 | class h8_state : public driver_device |
| 26 | 25 | { |
| r17842 | r17843 | |
| 166 | 165 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("@ REG") PORT_CODE(KEYCODE_R) |
| 167 | 166 | INPUT_PORTS_END |
| 168 | 167 | |
| 169 | | MACHINE_RESET_MEMBER(h8_state) |
| 168 | void h8_state::machine_reset() |
| 170 | 169 | { |
| 171 | 170 | beep_set_frequency(m_beep, H8_BEEP_FRQ); |
| 172 | 171 | output_set_value("pwr_led", 0); |
trunk/src/mess/drivers/pcm.c
| r17842 | r17843 | |
| 61 | 61 | #include "sound/wave.h" |
| 62 | 62 | #include "machine/k7659kb.h" |
| 63 | 63 | |
| 64 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 65 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 66 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 67 | 64 | |
| 68 | 65 | class pcm_state : public driver_device |
| 69 | 66 | { |
| r17842 | r17843 | |
| 180 | 177 | static INPUT_PORTS_START( pcm ) |
| 181 | 178 | INPUT_PORTS_END |
| 182 | 179 | |
| 183 | | MACHINE_RESET_MEMBER(pcm_state) |
| 180 | void pcm_state::machine_reset() |
| 184 | 181 | { |
| 185 | 182 | } |
| 186 | 183 | |
| 187 | | VIDEO_START_MEMBER( pcm_state ) |
| 184 | void pcm_state::video_start() |
| 188 | 185 | { |
| 189 | 186 | m_p_chargen = memregion("chargen")->base(); |
| 190 | 187 | } |
| 191 | 188 | |
| 192 | | SCREEN_UPDATE16_MEMBER( pcm_state ) |
| 189 | UINT32 pcm_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 193 | 190 | { |
| 194 | 191 | UINT8 y,ra,chr,gfx; |
| 195 | 192 | UINT16 sy=0,ma=0x400,x; |
trunk/src/mess/drivers/argo.c
| r17842 | r17843 | |
| 24 | 24 | #include "emu.h" |
| 25 | 25 | #include "cpu/z80/z80.h" |
| 26 | 26 | |
| 27 | | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 28 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 29 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 30 | 27 | |
| 31 | 28 | class argo_state : public driver_device |
| 32 | 29 | { |
| r17842 | r17843 | |
| 258 | 255 | state->membank("boot")->set_entry(0); |
| 259 | 256 | } |
| 260 | 257 | |
| 261 | | MACHINE_RESET_MEMBER(argo_state) |
| 258 | void argo_state::machine_reset() |
| 262 | 259 | { |
| 263 | 260 | membank("boot")->set_entry(1); |
| 264 | 261 | machine().scheduler().timer_set(attotime::from_usec(5), FUNC(argo_boot)); |
| r17842 | r17843 | |
| 270 | 267 | membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0xf800); |
| 271 | 268 | } |
| 272 | 269 | |
| 273 | | VIDEO_START_MEMBER( argo_state ) |
| 270 | void argo_state::video_start() |
| 274 | 271 | { |
| 275 | 272 | m_p_chargen = memregion("chargen")->base(); |
| 276 | 273 | } |
| 277 | 274 | |
| 278 | | SCREEN_UPDATE16_MEMBER( argo_state ) |
| 275 | UINT32 argo_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 279 | 276 | { |
| 280 | 277 | UINT8 y,ra,chr,gfx; |
| 281 | 278 | UINT16 sy=0,ma=0,x; |
trunk/src/mess/drivers/b16.c
| r17842 | r17843 | |
| 16 | 16 | #include "video/mc6845.h" |
| 17 | 17 | #include "machine/8237dma.h" |
| 18 | 18 | |
| 19 | | #define VIDEO_START_MEMBER(name) void name::video_start() |
| 20 | | #define SCREEN_UPDATE16_MEMBER(name) UINT32 name::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 21 | 19 | |
| 22 | 20 | |
| 23 | 21 | class b16_state : public driver_device |
| r17842 | r17843 | |
| 63 | 61 | #define mc6845_update_addr (((m_crtc_vreg[0x12]<<8) & 0x3f00) | (m_crtc_vreg[0x13] & 0xff)) |
| 64 | 62 | |
| 65 | 63 | |
| 66 | | VIDEO_START_MEMBER( b16_state ) |
| 64 | void b16_state::video_start() |
| 67 | 65 | { |
| 68 | 66 | // find memory regions |
| 69 | 67 | m_char_rom = memregion("pcg")->base(); |
| 70 | 68 | } |
| 71 | 69 | |
| 72 | 70 | |
| 73 | | SCREEN_UPDATE16_MEMBER( b16_state ) |
| 71 | UINT32 b16_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 74 | 72 | { |
| 75 | 73 | b16_state *state = machine().driver_data<b16_state>(); |
| 76 | 74 | int x,y; |