1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.zmpp.base;
24
25 /***
26 * This class manages read and write access to the byte array which contains
27 * the story file data. It is the only means to read and manipulate the
28 * memory map.
29 *
30 * @author Wei-ju Wu
31 * @version 1.0
32 */
33 public interface MemoryAccess extends MemoryReadAccess {
34
35 /***
36 * Writes an unsigned 16 bit value to the specified address.
37 *
38 * @param address the address to write to
39 * @param value the value to write
40 */
41 void writeUnsignedShort(int address, int value);
42
43 /***
44 * Writes a short value to the memory.
45 *
46 * @param address the address
47 * @param value the value
48 */
49 void writeShort(int address, short value);
50
51 /***
52 * Writes an unsigned byte value to the specified address.
53 *
54 * @param address the address to write to
55 * @param value the value to write
56 */
57 void writeUnsignedByte(int address, short value);
58
59 /***
60 * Writes a byte value to the specified address.
61 *
62 * @param address the address
63 * @param value the value
64 */
65 void writeByte(int address, byte value);
66
67 /***
68 * Writes an unsigned 32 bit value to the specified address.
69 *
70 * @param address the address to write to
71 * @param value the value to write
72 */
73 void writeUnsigned32(int address, long value);
74 }