2016-08-14 22:07:17 -04:00
|
|
|
/* Copyright holders: Sarah Walker
|
|
|
|
|
see COPYING for more details
|
|
|
|
|
*/
|
2016-06-26 00:34:39 +02:00
|
|
|
/*IBM 5150 cassette nonsense
|
|
|
|
|
Calls F979 twice
|
|
|
|
|
Expects CX to be nonzero, BX >$410 and <$540
|
|
|
|
|
CX is loops between bit 4 of $62 changing
|
|
|
|
|
BX is timer difference between calls
|
|
|
|
|
*/
|
2017-09-25 04:31:20 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <wchar.h>
|
2020-03-29 14:24:42 +02:00
|
|
|
#include <86box/timer.h>
|
|
|
|
|
#include <86box/pit.h>
|
|
|
|
|
#include <86box/ppi.h>
|
2016-06-26 00:34:39 +02:00
|
|
|
|
2017-09-25 04:31:20 -04:00
|
|
|
|
2017-05-29 01:18:32 +02:00
|
|
|
PPI ppi;
|
|
|
|
|
int ppispeakon;
|
|
|
|
|
|
2017-09-25 04:31:20 -04:00
|
|
|
|
|
|
|
|
void ppi_reset(void)
|
2016-06-26 00:34:39 +02:00
|
|
|
{
|
2017-05-05 01:49:42 +02:00
|
|
|
ppi.pa=0x0;
|
2016-06-26 00:34:39 +02:00
|
|
|
ppi.pb=0x40;
|
|
|
|
|
}
|