Search
lxdream.org :: lxdream/src/mem.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/mem.h
changeset 543:361ec0a70cf2
prev510:41ce7a074f4e
next561:533f6b478071
next586:2a3ba82cf243
author nkeynes
date Thu Dec 06 09:25:24 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Suppress enable/disable actions if there's no gui
file annotate diff log raw
1.1 --- a/src/mem.h Wed Nov 14 10:21:33 2007 +0000
1.2 +++ b/src/mem.h Thu Dec 06 09:25:24 2007 +0000
1.3 @@ -48,8 +48,14 @@
1.4 void *mem_create_ram_region( uint32_t base, uint32_t size, const char *name );
1.5 void *mem_create_repeating_ram_region( uint32_t base, uint32_t size, const char *name,
1.6 uint32_t repeat_offset, uint32_t last_repeat );
1.7 -void *mem_load_rom( const gchar *name, uint32_t base, uint32_t size, uint32_t crc,
1.8 - const gchar *region_name );
1.9 +/**
1.10 + * Load a ROM image from the specified filename. If the memory region has not
1.11 + * been allocated, it is created now, otherwise the existing region is reused.
1.12 + * If the CRC check fails, a warning will be printed.
1.13 + * @return TRUE if the image was loaded successfully (irrespective of CRC failure).
1.14 + */
1.15 +gboolean mem_load_rom( const gchar *filename, uint32_t base, uint32_t size,
1.16 + uint32_t crc, const gchar *region_name );
1.17 void *mem_alloc_pages( int n );
1.18 sh4ptr_t mem_get_region( uint32_t addr );
1.19 sh4ptr_t mem_get_region_by_name( const char *name );
.