Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 10:c898b37506e0
prev2:42349f6ea216
next23:1ec3acd0594d
author nkeynes
date Sun Dec 11 05:15:36 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Add CPU disasembly options to mode dropdown
Split sh4/mem.c into core mem.c and sh4/mem.c
Start adding copyright comments to file headers
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.h Sat Aug 21 06:15:49 2004 +0000
1.2 +++ b/src/sh4/sh4core.h Sun Dec 11 05:15:36 2005 +0000
1.3 @@ -1,5 +1,20 @@
1.4 -/*
1.5 - * Header for the basic sh4 emulator core
1.6 +/**
1.7 + * $Id: sh4core.h,v 1.3 2005-12-11 05:15:36 nkeynes Exp $
1.8 + *
1.9 + * This file defines the public functions exported by the SH4 core, except
1.10 + * for disassembly functions defined in sh4dasm.h
1.11 + *
1.12 + * Copyright (c) 2005 Nathan Keynes.
1.13 + *
1.14 + * This program is free software; you can redistribute it and/or modify
1.15 + * it under the terms of the GNU General Public License as published by
1.16 + * the Free Software Foundation; either version 2 of the License, or
1.17 + * (at your option) any later version.
1.18 + *
1.19 + * This program is distributed in the hope that it will be useful,
1.20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.22 + * GNU General Public License for more details.
1.23 */
1.24 #ifndef sh4core_H
1.25 #define sh4core_H 1
1.26 @@ -46,6 +61,15 @@
1.27 void sh4_execute_instruction( void );
1.28 void sh4_raise_exception( int, int );
1.29
1.30 +/* SH4 Memory */
1.31 +int32_t sh4_read_long( uint32_t addr );
1.32 +int32_t sh4_read_word( uint32_t addr );
1.33 +int32_t sh4_read_byte( uint32_t addr );
1.34 +void sh4_write_long( uint32_t addr, uint32_t val );
1.35 +void sh4_write_word( uint32_t addr, uint32_t val );
1.36 +void sh4_write_byte( uint32_t addr, uint32_t val );
1.37 +int32_t sh4_read_phys_word( uint32_t addr );
1.38 +
1.39 void run_timers( int );
1.40
1.41 #define SIGNEXT4(n) ((((int32_t)(n))<<28)>>28)
.