Debian Codegraph @

terps/bocfel/memory.h

raw symbols SCIP
1 // vim: set ft=cpp:
2
3 #ifndef ZTERP_MEMORY_H
4 #define ZTERP_MEMORY_H
5
6 #include <string>
7 #include <vector>
8
9 #include "types.h"
10
11 extern std::vector<uint8_t> memory, dynamic_memory;
12 extern uint32_t memory_size;
13
14 bool in_globals(uint16_t addr);
15 bool is_global(uint16_t addr);
16 std::string addrstring(uint16_t addr);
17
18 uint8_t byte(uint32_t addr);
19 void store_byte(uint32_t addr, uint8_t val);
20 uint8_t user_byte(uint16_t addr);
21 void user_store_byte(uint16_t addr, uint8_t v);
22
23 uint16_t word(uint32_t addr);
24 void store_word(uint32_t addr, uint16_t val);
25 uint16_t user_word(uint16_t addr);
26 void user_store_word(uint16_t addr, uint16_t v);
27
28 void zcopy_table();
29 void zscan_table();
30 void zloadw();
31 void zloadb();
32 void zstoreb();
33 void zstorew();
34
35 #endif