
#ifndef __asm_h
#define __asm_h 1

#define ASM_VERSION "1.1.3, Jul 1 2022"

/*    changed to global variables. Font can be loaded
	  from data file.
#define ASM_FONT_HEIGHT 8
#define ASM_FONT_WIDTH  8 */

#define ASM_FG_COLOR    15
#define ASM_EMPH_COLOR  14
#define ASM_BLACK_COLOR 13
#define ASM_GRAY_COLOR  12
#define ASM_RED_COLOR   11
#define ASM_GREEN_COLOR 10
#define ASM_BLUE_COLOR   9

#define ASM_COMMAND_LENGTH   1024
#define ASM_COMMANDS          600
#define ASM_COMMAND_PROMPT    "READY>"
#define ASM_POLL_PROMPT       "INPUT PARAMETER>"
#define ASM_TEXT_WINDOW_LINES  20
#define ASM_TEXT_OFFSET         4
#define ASM_DRAWING_TOP        10
#define ASM_DRAWING_LEFT        0

#define ASM_LOG_FILE    "asm.log"
#define ASM_INI_FILE    "asm.ini"

#define EOS '\0'
// #define TRUE 1  /* is already defined in allegro.h */
#define FALSE 0

#define printw asm_wprintf

#define FONT_SIZE    224            /* number of characters in a font */  /* allegro.h 2.2 */

int asm_wprintf(char *fmt, ...);
char *poll_loop(char * string,int mode);
void print_error(int error);
int gfx_mode();
void init_interp(void);

#endif
