return b == regs.h.al;
}
+
/*
* os_init_setup
*
return;
} /* os_warn */
+
/*
* os_fatal
*
} /* parse_options */
+
static char *malloc_filename(char *story_name, char *extension)
{
int length = strlen(story_name) + strlen(extension) + 2;
return filename;
}
+
/*
* os_process_arguments
*
volatile int end_of_sound_flag;
+
/*
* swap_colours
*
if (newc != 0)
cursor_right();
} /* input_move */
-
#undef H
+
/*
* delete_char
*
* to implement word completion (similar to tcsh under Unix).
*
*/
-
#define new_history_search() \
{ history.prefix_len = input.pos; history.current = history.latest; }
#undef new_history_search()
#endif
+
/*
* os_read_key
*
* print_string and read_string to ask for a file name.
*
*/
-
char *os_read_file_name (const char *default_name, int flag)
{
char *extension;
#include "frotz.h"
#include "dosfrotz.h"
+
/*
* detect_mouse
*
asm int 0x33
return _AX;
#endif
-
} /* detect_mouse */
mouse_x = _CX;
mouse_y = _DX;
#endif
-
if (display <= _TEXT_) {
mouse_x /= 8;
mouse_y /= 8;
mouse_x++;
mouse_y++;
}
-
/* Return single or double click */
return click;
} /* read_mouse */
static byte far *info = NULL;
#endif
+
/*
* open_graphics_file
*
* pictures and the release number instead.
*
*/
-
bool os_picture_data(int picture, int *height, int *width)
{
bool avail;
static word sample_len1 = 0;
static word sample_len2 = 0;
+
/*
* start_of_dma
*
} /* dos_reset_sound */
+
/*
* os_init_sound
*
os_stop_sample(0); /* we keep 64KB allocated all the time */
} /* os_finish_with_sample */
+
#else /* NO_SOUND */
/* Do-nothing stubs for when sound support is disabled. */
#endif /* NO_SOUND */
+
/*
* os_beep
*
static char name[] = "FONTS/FONT0.FNT";
+
/*
* available_bios
*
}
+
/*
* set_user_tfont
*
}
}
+
/*
* read_font
*
}
}
+
/*
* load_fonts
*
* indentation). The screen should not be scrolled after printing to the
* bottom right corner.
*
- */ void os_display_char(zchar c)
+ */
+void os_display_char(zchar c)
{
int width = os_char_width(c);
return 0;
}
+
/*
* os_to_true_colour
*