2017-05-02 14:56:59 +00:00
|
|
|
extern unsigned char ram[128*1024];
|
2017-06-25 03:58:26 +00:00
|
|
|
extern unsigned char a,y,x;
|
|
|
|
|
2017-05-02 14:56:59 +00:00
|
|
|
int grsim_input(void);
|
|
|
|
int grsim_update(void);
|
|
|
|
int grsim_init(void);
|
|
|
|
int color_equals(int new_color);
|
2017-05-04 18:59:25 +00:00
|
|
|
int basic_plot(unsigned char xcoord, unsigned char ycoord);
|
|
|
|
int basic_hlin(int x1, int x2, int at);
|
|
|
|
int basic_vlin(int y1, int y2, int at);
|
2017-05-02 19:21:32 +00:00
|
|
|
int gr(void);
|
2017-05-03 14:50:15 +00:00
|
|
|
int bload(char *filename, int address);
|
2017-05-03 16:20:53 +00:00
|
|
|
int scrn(unsigned char xcoord, unsigned char ycoord);
|
2017-05-04 18:32:23 +00:00
|
|
|
int grsim_unrle(unsigned char *rle_data, int address);
|
|
|
|
int home(void);
|
2017-07-25 04:42:50 +00:00
|
|
|
int grsim_put_sprite(int page,unsigned char *sprite_data, int xpos, int ypos);
|
2017-05-12 16:50:24 +00:00
|
|
|
int gr_copy(short source, short dest);
|
2017-05-17 19:47:20 +00:00
|
|
|
int text(void);
|
2017-05-17 21:14:47 +00:00
|
|
|
void basic_htab(int x);
|
|
|
|
void basic_vtab(int y);
|
|
|
|
void basic_print(char *string);
|
2017-05-18 17:09:51 +00:00
|
|
|
void basic_inverse(void);
|
|
|
|
void basic_normal(void);
|
2017-05-19 03:38:06 +00:00
|
|
|
int hlin(int page, int x1, int x2, int at);
|
2017-07-17 03:31:24 +00:00
|
|
|
int hlin_continue(int width);
|
|
|
|
int hlin_double_continue(int width);
|
|
|
|
int hlin_double(int page, int x1, int x2, int at);
|
|
|
|
|
2017-08-11 05:21:00 +00:00
|
|
|
int collision(int xx, int yy, int ground_color);
|
2017-05-18 17:09:51 +00:00
|
|
|
|
|
|
|
#define APPLE_UP 11
|
|
|
|
#define APPLE_DOWN 10
|
|
|
|
#define APPLE_LEFT 8
|
|
|
|
#define APPLE_RIGHT 21
|
2017-05-17 19:47:20 +00:00
|
|
|
|
2017-07-10 04:39:38 +00:00
|
|
|
#define COLOR_BLACK 0
|
|
|
|
#define COLOR_RED 1
|
|
|
|
#define COLOR_DARKBLUE 2
|
|
|
|
#define COLOR_PURPLE 3
|
|
|
|
#define COLOR_DARKGREEN 4
|
|
|
|
#define COLOR_GREY 5
|
|
|
|
#define COLOR_MEDIUMBLUE 6
|
|
|
|
#define COLOR_LIGHTBLUE 7
|
|
|
|
#define COLOR_BROWN 8
|
|
|
|
#define COLOR_ORANGE 9
|
|
|
|
#define COLOR_GREY2 10
|
|
|
|
#define COLOR_PINK 11
|
|
|
|
#define COLOR_LIGHTGREEN 12
|
|
|
|
#define COLOR_YELLOW 13
|
|
|
|
#define COLOR_AQUA 14
|
|
|
|
#define COLOR_WHITE 15
|