⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.h

📁 汇编语言编的关于ov143b.asm的小程序
💻 H
字号:
/*  001  20-Apr-87  menu.h

        Copyright (c) 1987 by Blue Sky Software.  All rights reserved.
*/

/* menu selection entry structure */

typedef struct menu_selection {
   char *choice;
   char *prompt;
   int (*func)();
   struct menu_selection *sub_menu;
} MENU;

/* menu state control block */

#define MAX_MENU_SELECTIONS 20

typedef struct {
   MENU *current_menu;
   int number_selections;
   int current_selection;
   struct {
      unsigned char position;
      unsigned char length;
   } selection[MAX_MENU_SELECTIONS];
} MENU_STATE;

/* function declaration stuff */

#define ALTCALL pascal         /* alternate calling method reduces overhead */

#ifdef LINT_ARGS
void ALTCALL menu_save(void);
void ALTCALL menu_restore(void);
void ALTCALL menu_init(void);
void ALTCALL menu_advance(void);
void ALTCALL menu_backup(void);
int  ALTCALL menu_do_char(int);
void ALTCALL menu_do_current(void);
#else
void ALTCALL menu_save();
void ALTCALL menu_restore();
void ALTCALL menu_init();
void ALTCALL menu_advance();
void ALTCALL menu_backup();
int  ALTCALL menu_do_char();
void ALTCALL menu_do_current();
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -