|
|
1.1 root 1: #include "../machine/alignment.h"
2: int get_word (infop, address)
3: process_info *infop;
4: char *address;
5: /*
6: /* Fetch the word at the given 'address' from memory.
7: /* Caveat: It's quite difficult to find a pte reference
8: /* fault. So I took the easy way out and just signal
9: /* an illegal access.
10: /*
11: /**************************************************/
12: {
13: register long code, value;
14:
15: code = readable(infop, address, 2);
16: if (code == TRUE) {
17: value = *address++ << 8;
18: value = value | *address & 0xff;
19: return(value);
20: } else exception (infop, ILL_ACCESS, address, code);
21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.