dos33fsprogs/gr-sim/tfv_zp.h

96 lines
1.7 KiB
C
Raw Normal View History

2017-08-13 00:15:34 +00:00
/* Page Zero */
#define COLOR1 0x00
#define COLOR2 0x01
#define MATCH 0x02
#define XX 0x03
#define YY 0x04
#define YADD 0x05
#define LOOP 0x06
#define MEMPTRL 0x07
#define MEMPTRH 0x08
#define DISP_PAGE 0x09
#define DRAW_PAGE 0x0a
#define TEMPY 0xfb
#define OUTL 0xfe
#define OUTH 0xff
2017-08-13 00:15:34 +00:00
/* Zero page addresses */
#define WNDLFT 0x20
#define WNDWDTH 0x21
#define WNDTOP 0x22
#define WNDBTM 0x23
#define CH 0x24
#define CV 0x25
#define GBASL 0x26
#define GBASH 0x27
#define BASL 0x28
#define BASH 0x29
#define BAS2L 0x2A
#define BAS2H 0x2B
#define H2 0x2C
#define V2 0x2D
#define MASK 0x2E
#define COLOR 0x30
2018-07-02 03:06:35 +00:00
#define HMASK 0x30
#define INVFLG 0x32
#define YSAV 0x34
#define YSAV1 0x35
#define CSWL 0x36
#define CSWH 0x37
2018-07-02 03:06:35 +00:00
#define HGR_SHAPE 0x1A
#define HGR_SHAPE_H 0x1B
#define HGR_BITS 0x1C
#define HGR_COUNT 0x1D
2018-07-02 03:06:35 +00:00
#define DSCTMP 0x9D
#define HGR_DX 0xD0
#define HGR_DX_H 0xD1
#define HGR_DY 0xD2
#define HGR_QUADRANT 0xD3
#define HGR_E 0xD4
#define HGR_E_H 0xD5
2018-07-02 03:06:35 +00:00
#define HGR_X 0xE0
#define HGR_X_H 0xE1
#define HGR_Y 0xE2
#define HGR_COLOR 0xE4
#define HGR_HORIZ 0xE5
#define HGR_PAGE 0xE6
2017-08-13 00:15:34 +00:00
/* stats */
extern unsigned char level;
extern unsigned char hp,max_hp;
extern unsigned char limit;
extern unsigned char money,experience;
extern unsigned char time_hours,time_minutes;
extern unsigned char items1,items2;
extern unsigned char steps;
2017-08-13 19:38:49 +00:00
struct fixed_type {
char i;
unsigned char f;
};
2017-08-13 00:15:34 +00:00
int opening(void);
2017-08-13 00:52:18 +00:00
int title(void);
2017-08-13 19:38:49 +00:00
int flying(void);
void game_over(void);
void show_map(void);
void print_info(void);
void print_help(void);
2017-08-16 18:46:45 +00:00
int name_screen(void);
2017-08-13 19:38:49 +00:00
int do_battle(void);
2017-08-16 18:46:45 +00:00
int world_map(void);
2017-09-14 19:12:38 +00:00
int city_map(void);