diff options
author | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-01-17 22:15:13 +0000 |
---|---|---|
committer | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-01-17 22:15:13 +0000 |
commit | 7f28c94eda576e3f972fc05468188986f2e45885 (patch) | |
tree | e03b94613028d16855a5d3df0f4853e077931214 /apps/plugins/frotz/setup.h | |
parent | 563f2602f471208cb8544a36539a79dcceaad643 (diff) | |
download | rockbox-7f28c94eda576e3f972fc05468188986f2e45885.tar.gz rockbox-7f28c94eda576e3f972fc05468188986f2e45885.zip |
New plugin: frotz, a Z-machine interpreter, for playing interactive fiction.
The interpreter more or less passes all the tests in the z-machine test suite.
It should build for every target except Archos (for which it is disabled).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24267 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/frotz/setup.h')
-rw-r--r-- | apps/plugins/frotz/setup.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/apps/plugins/frotz/setup.h b/apps/plugins/frotz/setup.h new file mode 100644 index 0000000000..a9b9360122 --- /dev/null +++ b/apps/plugins/frotz/setup.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * Various status thingies for the interpreter and interface. | ||
3 | * | ||
4 | */ | ||
5 | |||
6 | typedef struct frotz_setup_struct { | ||
7 | int attribute_assignment; /* done */ | ||
8 | int attribute_testing; /* done */ | ||
9 | int context_lines; /* done */ | ||
10 | int object_locating; /* done */ | ||
11 | int object_movement; /* done */ | ||
12 | int left_margin; /* done */ | ||
13 | int right_margin; /* done */ | ||
14 | int ignore_errors; /* done */ | ||
15 | int interpreter_number; /* Just dumb frotz now */ | ||
16 | int piracy; /* done */ | ||
17 | int undo_slots; /* done */ | ||
18 | int expand_abbreviations; /* done */ | ||
19 | int script_cols; /* done */ | ||
20 | int save_quetzal; /* done */ | ||
21 | int sound; /* done */ | ||
22 | int err_report_mode; /* done */ | ||
23 | } f_setup_t; | ||
24 | |||
25 | extern f_setup_t f_setup; | ||
26 | |||
27 | |||
28 | typedef struct zcode_header_struct { | ||
29 | zbyte h_version; | ||
30 | zbyte h_config; | ||
31 | zword h_release; | ||
32 | zword h_resident_size; | ||
33 | zword h_start_pc; | ||
34 | zword h_dictionary; | ||
35 | zword h_objects; | ||
36 | zword h_globals; | ||
37 | zword h_dynamic_size; | ||
38 | zword h_flags; | ||
39 | zbyte h_serial[6]; | ||
40 | zword h_abbreviations; | ||
41 | zword h_file_size; | ||
42 | zword h_checksum; | ||
43 | zbyte h_interpreter_number; | ||
44 | zbyte h_interpreter_version; | ||
45 | zbyte h_screen_rows; | ||
46 | zbyte h_screen_cols; | ||
47 | zword h_screen_width; | ||
48 | zword h_screen_height; | ||
49 | zbyte h_font_height; | ||
50 | zbyte h_font_width; | ||
51 | zword h_functions_offset; | ||
52 | zword h_strings_offset; | ||
53 | zbyte h_default_background; | ||
54 | zbyte h_default_foreground; | ||
55 | zword h_terminating_keys; | ||
56 | zword h_line_width; | ||
57 | zbyte h_standard_high; | ||
58 | zbyte h_standard_low; | ||
59 | zword h_alphabet; | ||
60 | zword h_extension_table; | ||
61 | zbyte h_user_name[8]; | ||
62 | |||
63 | zword hx_table_size; | ||
64 | zword hx_mouse_x; | ||
65 | zword hx_mouse_y; | ||
66 | zword hx_unicode_table; | ||
67 | } z_header_t; | ||