|
|
1.1 root 1: /******************************************************************************
2: * Copyright (c) 2004, 2008 IBM Corporation
3: * All rights reserved.
4: * This program and the accompanying materials
5: * are made available under the terms of the BSD License
6: * which accompanies this distribution, and is available at
7: * http://www.opensource.org/licenses/bsd-license.php
8: *
9: * Contributors:
10: * IBM Corporation - initial implementation
11: *****************************************************************************/
12:
13: #ifndef _BIOSEMU_MEM_H_
14: #define _BIOSEMU_MEM_H_
15: #include <x86emu/x86emu.h>
16: #include <stdint.h>
17:
18: // read byte from memory
19: uint8_t my_rdb(uint32_t addr);
20:
21: //read word from memory
22: uint16_t my_rdw(uint32_t addr);
23:
24: //read long from memory
25: uint32_t my_rdl(uint32_t addr);
26:
27: //write byte to memory
28: void my_wrb(uint32_t addr, uint8_t val);
29:
30: //write word to memory
31: void my_wrw(uint32_t addr, uint16_t val);
32:
33: //write long to memory
34: void my_wrl(uint32_t addr, uint32_t val);
35:
36: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.