forked from dhansel/Altair8800
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drive.h
23 lines (19 loc) · 709 Bytes
/
drive.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// -----------------------------------------------------------------------------
// Altair 8800 Simulator
// Copyright (C) 2017 David Hansel
// -----------------------------------------------------------------------------
#ifndef DRIVE_H
#define DRIVE_H
#include <Arduino.h>
void drive_setup();
void drive_dir();
const char *drive_get_image_filename(byte image_num, bool check_exist = true);
const char *drive_get_image_description(byte image_num);
bool drive_mount(byte drive_num, byte image_num);
bool drive_unmount(byte drive_num);
byte drive_get_mounted_image(byte drive_num);
void drive_reset();
void drive_set_realtime(bool b);
byte drive_in(byte addr);
void drive_out(byte addr, byte data);
#endif