Previous 15994 Revisions Next

r8674 Sunday 1st August, 2010 at 11:04:37 UTC by Angelo Salese
[BASIC MASTER LV 3]: Added beeper
[src/mess/drivers]bml3.c

src/mess/drivers/bml3.c
r8673r8674
239239//   else if(offset == 0xc4)                  { /* system latch, writes 0x53 -> 0x51 when a tape is loaded */}
240240   else if(offset == 0xc6 || offset == 0xc7)    { bml3_6845_w(space,offset-0xc6,data); }
241241   else if(offset == 0xd0)                  { bml3_hres_reg_w(space,0,data);  }
242   else if(offset == 0xd3)                  { /* every time that the user presses a key, unknown purpose */ }
242   else if(offset == 0xd3)                  { beep_set_state(space->machine->device("beeper"),!(data & 0x80)); }
243243   else if(offset == 0xd6)                  { bml3_vres_reg_w(space,0,data); }
244244   else if(offset == 0xd8)                   { attr_latch = data; }
245245   else
r8673r8674
433433static MACHINE_START(bml3)
434434{
435435   timer_pulse(machine, ATTOTIME_IN_HZ(240/8), NULL, 0, keyboard_callback);
436   beep_set_frequency(machine->device("beeper"),300); //guesswork
436   beep_set_frequency(machine->device("beeper"),1200); //guesswork
437437   beep_set_state(machine->device("beeper"),0);
438438}
439439

Previous 15994 Revisions Next


© 1998-2018 The MESS Team