fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
at master 42 lines 2.0 kB view raw
1/***************************************************************************** 2 * pce * 3 *****************************************************************************/ 4 5/***************************************************************************** 6 * File name: src/arch/macplus/mem.h * 7 * Created: 2007-11-13 by Hampa Hug <hampa@hampa.ch> * 8 * Copyright: (C) 2007-2011 Hampa Hug <hampa@hampa.ch> * 9 *****************************************************************************/ 10 11/***************************************************************************** 12 * This program is free software. You can redistribute it and / or modify it * 13 * under the terms of the GNU General Public License version 2 as published * 14 * by the Free Software Foundation. * 15 * * 16 * This program is distributed in the hope that it will be useful, but * 17 * WITHOUT ANY WARRANTY, without even the implied warranty of * 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 19 * Public License for more details. * 20 *****************************************************************************/ 21 22 23#ifndef PCE_MACPLUS_MEM_H 24#define PCE_MACPLUS_MEM_H 1 25 26 27#include "macplus.h" 28 29 30void mac_set_overlay (macplus_t *sim, int overlay); 31 32 33unsigned char mac_mem_get_uint8 (void *ext, unsigned long addr); 34unsigned short mac_mem_get_uint16 (void *ext, unsigned long addr); 35unsigned long mac_mem_get_uint32 (void *ext, unsigned long addr); 36 37void mac_mem_set_uint8 (void *ext, unsigned long addr, unsigned char val); 38void mac_mem_set_uint16 (void *ext, unsigned long addr, unsigned short val); 39void mac_mem_set_uint32 (void *ext, unsigned long addr, unsigned long val); 40 41 42#endif