Previous 199869 Revisions Next

r23894 Sunday 23rd June, 2013 at 22:14:52 UTC by Curt Coder
(MESS) ibm5160: Keyboard WIP. (nw)
[src/mess/machine]kb_pcat84.c kb_pcat84.h kb_pcxt83.c kb_pcxt83.h

trunk/src/mess/machine/kb_pcat84.c
r23893r23894
2424//  MACROS / CONSTANTS
2525//**************************************************************************
2626
27#define I8048_TAG       "i8048"
27#define I8048_TAG       "m5"
2828
2929
3030
r23893r23894
4949   D 878154
5050   8441 D H
5151   */
52   ROM_LOAD( "1503099.bin", 0x000, 0x400, CRC(1e921f37) SHA1(5f722bdb3b57f5a532c02a5c3f78f30d785796f2) )
52   ROM_LOAD( "1503099.m5", 0x000, 0x400, CRC(1e921f37) SHA1(5f722bdb3b57f5a532c02a5c3f78f30d785796f2) )
5353ROM_END
5454
5555
r23893r23894
7676   D
7777   8512 D H
7878   */
79   ROM_LOAD( "1385001.bin", 0x000, 0x400, CRC(c19767e9) SHA1(a3701e4617383a4de0fd5e2e86c4b74beaf94a7b) )
79   ROM_LOAD( "1385001.m5", 0x000, 0x400, CRC(c19767e9) SHA1(a3701e4617383a4de0fd5e2e86c4b74beaf94a7b) )
8080ROM_END
8181
8282
r23893r23894
580580   output_set_led_value(LED_NUM, BIT(data, 1));
581581   output_set_led_value(LED_CAPS, BIT(data, 2));
582582
583   m_pc_kbdc->data_write_from_kb(!BIT(data, 7));
583584   m_pc_kbdc->clock_write_from_kb(!BIT(data, 6));
584   m_pc_kbdc->data_write_from_kb(!BIT(data, 7));
585585}
586586
587587
trunk/src/mess/machine/kb_pcat84.h
r23893r23894
99
1010#pragma once
1111
12#ifndef __PCAT84_KEYBOARD__
13#define __PCAT84_KEYBOARD__
12#ifndef __PC_KBD_IBM_PC_AT_84__
13#define __PC_KBD_IBM_PC_AT_84__
1414
1515#include "emu.h"
1616#include "cpu/mcs48/mcs48.h"
r23893r23894
5252   virtual void device_reset();
5353
5454   // device_pc_kbd_interface overrides
55   virtual DECLARE_WRITE_LINE_MEMBER( clock_write ) { m_maincpu->set_input_line(INPUT_LINE_IRQ0, state); };
55   virtual DECLARE_WRITE_LINE_MEMBER( clock_write ) { m_maincpu->set_input_line(MCS48_INPUT_IRQ, state); };
5656   virtual DECLARE_WRITE_LINE_MEMBER( data_write ) { };
5757
5858private:
trunk/src/mess/machine/kb_pcxt83.c
r23893r23894
11/**********************************************************************
22
3    IBM Model F PC/XT 5150/5160 83-key keyboard emulation
3    IBM Model F PC/XT 83-key keyboard emulation
44
55    Copyright MESS Team.
66    Visit http://mamedev.org for licensing and usage restrictions.
r23893r23894
328328   
329329   */
330330
331   m_pc_kbdc->data_write_from_kb(BIT(data, 6));
331332   m_pc_kbdc->clock_write_from_kb(BIT(data, 5));
332   m_pc_kbdc->data_write_from_kb(BIT(data, 6));
333333
334334   if (BIT(data, 7))
335335   {
trunk/src/mess/machine/kb_pcxt83.h
r23893r23894
11/**********************************************************************
22
3    IBM Model F PC/XT 5150/5160 83-key keyboard emulation
3    IBM Model F PC/XT 83-key keyboard emulation
44
55    Copyright MESS Team.
66    Visit http://mamedev.org for licensing and usage restrictions.
r23893r23894
99
1010#pragma once
1111
12#ifndef __PCXT83_KEYBOARD__
13#define __PCXT83_KEYBOARD__
12#ifndef __PC_KBD_IBM_PC_XT_83__
13#define __PC_KBD_IBM_PC_XT_83__
1414
1515#include "emu.h"
1616#include "cpu/mcs48/mcs48.h"
r23893r23894
4949   virtual void device_reset();
5050
5151   // device_pc_kbd_interface overrides
52   virtual DECLARE_WRITE_LINE_MEMBER( clock_write ) { m_maincpu->set_input_line(INPUT_LINE_IRQ0, !state); };
52   virtual DECLARE_WRITE_LINE_MEMBER( clock_write ) { m_maincpu->set_input_line(MCS48_INPUT_IRQ, !state); };
5353   virtual DECLARE_WRITE_LINE_MEMBER( data_write ) { };
5454
5555private:

Previous 199869 Revisions Next


© 1997-2024 The MAME Team