1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
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
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
13 #ifndef _BIOSEMU_MEM_H_
14 #define _BIOSEMU_MEM_H_
15 #include <x86emu/x86emu.h>
18 // read byte from memory
19 uint8_t my_rdb(uint32_t addr);
21 //read word from memory
22 uint16_t my_rdw(uint32_t addr);
24 //read long from memory
25 uint32_t my_rdl(uint32_t addr);
27 //write byte to memory
28 void my_wrb(uint32_t addr, uint8_t val);
30 //write word to memory
31 void my_wrw(uint32_t addr, uint16_t val);
33 //write long to memory
34 void my_wrl(uint32_t addr, uint32_t val);