16 lines
273 B
C
16 lines
273 B
C
#ifndef IO_H
|
|
#define IO_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define IO_SIZE (1 * 1024) // 1KiB
|
|
#define IO_BASE (55 * 1024) // 55KiB RAM, hard coded
|
|
|
|
#define SCREEN_ADDRESS 0
|
|
#define KEYBOARD_ADDRESS 1
|
|
#define ROM_BANKED_OUT 2
|
|
|
|
int putChar(uint8_t c);
|
|
int getChar(void);
|
|
|
|
#endif // IO_H
|