16 lines
296 B
C
16 lines
296 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
|
|
|
|
int putChar(uint8_t c);
|
|
int getChar(void);
|
|
|
|
#endif // IO_H
|