From 88b47cdd8bd20e54fcfdf5e98c24c8e7d0c97415 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 6 Dec 2018 19:35:58 -0800 Subject: GLK: FROTZ: Added winarg methods --- engines/glk/frotz/processor.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'engines/glk/frotz/processor.h') diff --git a/engines/glk/frotz/processor.h b/engines/glk/frotz/processor.h index dcf39869c1..5d6d4487f9 100644 --- a/engines/glk/frotz/processor.h +++ b/engines/glk/frotz/processor.h @@ -549,7 +549,6 @@ protected: /** * Map a Unicode character onto the ZSCII alphabet. - * */ zbyte translate_to_zscii(zchar c); @@ -668,6 +667,26 @@ protected: zchar unicode_tolower(zchar c); /**@}*/ + + /** + * \defgroup Window/V6 Opcode methods + * @{ + */ + + /** + * Return the window number in zargs[0]. In V6 only, -3 refers to the + * current window. + */ + zword winarg0(); + + /** + * Return the (optional) window number in zargs[2]. -3 refers to the + * current window. This optional window number was only used by some + * V6 opcodes: set_cursor, set_margins, set_colour. + */ + zword winarg2(); + + /**@}*/ protected: /** * \defgroup General Opcode methods -- cgit v1.2.3