18 lines
438 B
C
18 lines
438 B
C
#ifndef IO_H
|
|
#define IO_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define IO_SIZE (1 * 1024) // 1KiB
|
|
#define IO_BASE (47 * 1024) // 47KiB RAM, hard coded, 0xBC00
|
|
|
|
#define SCREEN_ADDRESS 0
|
|
#define KEYBOARD_ADDRESS 1
|
|
#define ROM_BANKED_OUT 2
|
|
#define FILE_COMMAND 3
|
|
#define FILE_DESCRIPTOR 4
|
|
#define FILE_DATA 5 // data, low byte of string pointer
|
|
#define FILE_DATA_HIGH 6 // high byte of string pointer
|
|
#define FILE_STATUS 7
|
|
|
|
#endif // IO_H
|