OXYGENHUB
◆ main x16-emulator / src / via.h
503 B · Objective-C · last changed chore(): initial commit 15 days ago source blame history raw
1
// Commander X16 Emulator
2
// Copyright (c) 2019 Michael Steil
3
// All rights reserved. License: 2-clause BSD
4
5
#ifndef VIA_H
6
#define VIA_H
7
8
#include <stdint.h>
9
#include <stdbool.h>
10
11
void via1_init();
12
uint8_t via1_read(uint8_t reg, bool debug);
13
void via1_write(uint8_t reg, uint8_t value);
14
void via1_step(unsigned clocks);
15
bool via1_irq();
16
17
void via2_init();
18
uint8_t via2_read(uint8_t reg, bool debug);
19
void via2_write(uint8_t reg, uint8_t value);
20
void via2_step(unsigned clocks);
21
bool via2_irq();
22
23
#endif