Commit | Line | Data |
---|---|---|
2da74194 AT |
1 | #ifndef WUMP_CONF |
2 | #define WUMP_CONF | |
3 | ||
4 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
5 | @ (c) 2019 Aaron Taylor <ataylor at subgeniuskitty dot com> | |
6 | @ See LICENSE.txt file for copyright and license details. | |
7 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
8 | ||
9 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
10 | @ All user configurable options are contained in this file. | |
11 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
12 | ||
13 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
14 | @ Name: | |
15 | @ set_config_values | |
16 | @ Description: | |
17 | @ Place user-configurable values for Hunt the Wumpus on the heap. | |
18 | @ The program assumes the values are sane. (e.g. #pits < #rooms, etc) | |
19 | @ Call Stack: | |
20 | @ <empty> | |
21 | @ Return Stack: | |
22 | @ <empty> | |
23 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
24 | #include <heap.pvvs> | |
25 | NSSVTSSSSSSTN | MARK: 10000001 (set_config_values) | |
26 | ||
27 | @ Number of arrows | |
28 | SSSTSTN | PUSH +5 | |
29 | ||
30 | @ Maximum arrow travel distance | |
31 | SSSTSTN | PUSH +5 | |
32 | ||
33 | @ Maximum links per room (must be >2) | |
34 | SSSTTN | PUSH +3 | |
35 | ||
36 | @ Number of bats in cave | |
37 | SSSTSN | PUSH +2 | |
38 | ||
39 | @ Number of pits in cave | |
40 | SSSTSN | PUSH +2 | |
41 | ||
42 | @ Number of rooms in cave | |
43 | SSSTSTSSN | PUSH +20 | |
44 | ||
45 | @ Push config values to heap and return. | |
46 | SSSTSSSSSSSSSSSSN | PUSH 0x1000 (GAME_DATA_BASE address) | |
47 | SSSTSTN | PUSH +5 (word count) | |
48 | NSTTTTTTN | JSR > 11111 (spew) | |
49 | NTN | RTS | |
50 | ||
51 | #endif |