Search
lxdream.org :: lxdream/src/loader.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/loader.c
changeset 19:9da7a8e38f9d
prev18:9a1b5d75703f
next25:fa2d21d57942
author nkeynes
date Thu Dec 22 07:38:12 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Implement 95% of the SCIF serial interface
Implement basic load_bin_file function to try to load demos directly
Update TMU to run all 3 timers, start on general timing
file annotate diff log raw
1.1 --- a/src/loader.c Thu Dec 15 13:33:14 2005 +0000
1.2 +++ b/src/loader.c Thu Dec 22 07:38:12 2005 +0000
1.3 @@ -11,6 +11,7 @@
1.4 #include "gui.h"
1.5 #include "ipbin.h"
1.6 #include "sh4core.h"
1.7 +#include "pvr2.h"
1.8 #include "mem.h"
1.9
1.10 char ip_bin_magic[32] = "SEGA SEGAKATANA SEGA ENTERPRISES";
1.11 @@ -84,3 +85,12 @@
1.12 close(fd);
1.13 return 0;
1.14 }
1.15 +
1.16 +int load_bin_file( const gchar *filename ) {
1.17 + mem_load_block( filename, 0x8c010000, -1 );
1.18 + sh4_set_pc( 0x8c010000 );
1.19 + set_disassembly_region( main_debug, 0x8c010000 );
1.20 + set_disassembly_pc( main_debug, sh4r.pc, TRUE );
1.21 + pvr2_set_base_address( 0x00025940 );
1.22 + update_gui();
1.23 +}
.