src/mess/drivers/crvision.c
| r8514 | r8515 | |
| 757 | 757 | state->keylatch = data; |
| 758 | 758 | } |
| 759 | 759 | |
| 760 | static READ_LINE_DEVICE_HANDLER( lasr2001_pia_ca1_r ) |
| 761 | { |
| 762 | return cassette_input(device) > -0.1469; |
| 763 | } |
| 764 | |
| 765 | static WRITE_LINE_DEVICE_HANDLER( lasr2001_pia_ca2_w ) |
| 766 | { |
| 767 | cassette_output(device, state ? +1.0 : -1.0); |
| 768 | } |
| 769 | |
| 760 | 770 | static WRITE_LINE_DEVICE_HANDLER( lasr2001_pia_cb2_w ) |
| 761 | 771 | { |
| 762 | 772 | crvision_state *driver_state = (crvision_state *)device->machine->driver_data; |
| r8514 | r8515 | |
| 771 | 781 | { |
| 772 | 782 | DEVCB_HANDLER(lasr2001_pia_pa_r), // input A |
| 773 | 783 | DEVCB_HANDLER(lasr2001_pia_pb_r), // input B |
| 774 | | DEVCB_NULL, // input CA1 ? |
| 784 | DEVCB_DEVICE_LINE(CASSETTE_TAG, lasr2001_pia_ca1_r),// input CA1 |
| 775 | 785 | DEVCB_DEVICE_LINE(SN76489_TAG, sn76496_ready_r), // input CB1 |
| 776 | 786 | DEVCB_NULL, // input CA2 ? |
| 777 | 787 | DEVCB_LINE_VCC, // input CB2 (+5V) |
| 778 | 788 | DEVCB_HANDLER(lasr2001_pia_pa_w), // output A |
| 779 | 789 | DEVCB_HANDLER(lasr2001_pia_pb_w), // output B |
| 780 | | DEVCB_NULL, // output CA2 ? |
| 790 | DEVCB_DEVICE_LINE(CASSETTE_TAG, lasr2001_pia_ca2_w),// output CA2 |
| 781 | 791 | DEVCB_DEVICE_LINE(SN76489_TAG, lasr2001_pia_cb2_w), // output CB2 (SN76489 pin CE_) |
| 782 | 792 | DEVCB_NULL, // irq A (floating) |
| 783 | 793 | DEVCB_NULL // irq B (floating) |
| r8514 | r8515 | |
| 796 | 806 | }; |
| 797 | 807 | |
| 798 | 808 | /*------------------------------------------------- |
| 809 | cassette_config lasr2001_cassette_config |
| 810 | -------------------------------------------------*/ |
| 811 | |
| 812 | static const cassette_config lasr2001_cassette_config = |
| 813 | { |
| 814 | cassette_default_formats, |
| 815 | NULL, |
| 816 | (cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED), |
| 817 | NULL |
| 818 | }; |
| 819 | |
| 820 | /*------------------------------------------------- |
| 799 | 821 | floppy_config lasr2001_floppy_config |
| 800 | 822 | -------------------------------------------------*/ |
| 801 | 823 | |
| r8514 | r8515 | |
| 1094 | 1116 | MDRV_SOFTWARE_LIST_ADD("cart_list","crvision") |
| 1095 | 1117 | |
| 1096 | 1118 | /* cassette */ |
| 1097 | | MDRV_CASSETTE_ADD(CASSETTE_TAG, crvision_cassette_config) |
| 1119 | MDRV_CASSETTE_ADD(CASSETTE_TAG, lasr2001_cassette_config) |
| 1098 | 1120 | |
| 1099 | 1121 | /* floppy */ |
| 1100 | 1122 | MDRV_FLOPPY_DRIVE_ADD(FLOPPY_0, lasr2001_floppy_config) |