📄 hddamacros.h
字号:
/******************************************************************
** 文件名:hddamacros.asm
** Copyright (c) 1998-1999 *********公司技术开发部
** 创建人:
** 日 期:2003.06.25
** 修改人:
** 日 期:2003.12.08
** 描 述:一些常数和宏的定义
** 版 本:
******************************************************************/
//如果是PAL制式,将下一行注释掉即可。
#define NTSC
#ifdef NTSC
//当NTSC制式时
#define HEIGHT 525
//画面需要向左上角移动的距离
#define OFFSETX 20//必须是偶数!!!
#define OFFSETY 22
#else
//当PAL制式时
#define HEIGHT 625
//画面需要向左上角移动的距离
#define OFFSETX 20//必须是偶数!!!
#define OFFSETY 80
#endif
#define WIDTH WIDTHOUT
#define HEIGHTOUT HEIGHT
#define WIDTHOUT 640
#define HEIGHTIN HEIGHT
#define WIDTHIN 720
#define PAGE HEIGHTIN*WIDTHIN
#define NUMOFPARAMETERS 100
#define BLACK 0
#define WHITE 0xffff
#define BLUE 0x1f
#define GREEN 0X7E0
#define RED 0xf800
#define GOLD 0xe700
#define PURPLE 0x7ff
//#define GOLD 0xe700
#define BROWN 0X4140
#define CAMBLUE 0X16
#define PURPLE1 WHITE
#define GREEN1 GREEN
//#define CAMBLUE WHITE
#define YELLOW WHITE
#define TEST1 WHITE
#define TEST2 WHITE
//define of nFlags
#define BFINALRESULT 0x1
#define BIGFONT 0x2
#define VERTICALSTRING 0x4
#define BHDDA 0x8
#define NEEDMODIFY 0x10
#define BLINKING 0x20
#define RIGHTALIGN 0x40
#define DASHED 0x80
//DEFINE OF POSITION
#define TOP 60
#define BOTTOM 460
#define LEFT 60
#define RIGHT 580
#define ROW1 100
#define ROW2 200
#define ROW3 300
#define ROW4 400
#define ROW5 500
#define LINE1 100
#define LINE2 200
#define LINE3 300
#define LINE4 400
#define LINE5 500
//
#define RADIUS 80
#define RADIUS2 160
#define RADIUS3 240
#define NAVCENTERX 300
#define NAVCENTERY 350
#define SCALEHIGHT 15
#define SCALEHIGHT1 20
#define COURSEHIGHT 20
#define COURSEWIDTH 40
#define PI 3.14159
#define WHOLEANGLE 360
#define HALFANGLE 180
#define PI_180 PI/HALFANGLE
#define NUMOFCHARINLIB 67//字库中的字符总个数
#define NUMOFCHN 4
#define CHN0 128
#define CHN1 129
#define CHN2 130
#define CHN3 131
#define CHN4 132
#define CHN5 133
#define CHN6 134
#define CHN7 135
#define CHN8 136
#define CHN9 137
#define CHN10 138
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -