2018-08-01 20:37:31 +00:00
|
|
|
#ifndef __PLATFORM_H__
|
|
|
|
#define __PLATFORM_H__
|
|
|
|
|
2018-08-03 01:59:31 +00:00
|
|
|
#define TEXT_PAGE1_BASE ((unsigned char *)0x400)
|
|
|
|
#define TEXT_PAGE2_BASE ((unsigned char *)0x800)
|
2018-07-31 19:01:19 +00:00
|
|
|
|
2018-08-01 20:37:31 +00:00
|
|
|
// Standard types.
|
|
|
|
typedef signed char int8_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef signed int int16_t;
|
|
|
|
typedef unsigned int uint16_t;
|
|
|
|
|
2018-07-31 19:01:19 +00:00
|
|
|
// Returns non-zero if a key is ready to be read.
|
|
|
|
extern int keyboard_test(void);
|
|
|
|
|
|
|
|
// Clears current key, sets up next one for test or get
|
|
|
|
extern void keyboard_next(void);
|
|
|
|
|
|
|
|
// Wait until a key is ready and then return it without high bit set
|
|
|
|
extern unsigned char keyboard_get(void);
|
2018-08-01 20:37:31 +00:00
|
|
|
|
|
|
|
#endif // __PLATFORM_H__
|