Search
lxdream.org :: lxdream/src/bootstrap.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/bootstrap.c
changeset 736:a02d1475ccfd
prev561:533f6b478071
next1095:a8b798030464
author nkeynes
date Tue Dec 15 08:46:37 2009 +1000 (14 years ago)
permissions -rw-r--r--
last change Add side-by-side x86+sh4 disassembly output
Print SH4 state information and disassembly of the current block when
crashing.
Fix delay slot instruction in conditional branch not being marked as a
delay-slot instruction in the branch-not-taken path.
Rename REG_* defines in cpu.h to avoid conflict with translation defs
file annotate diff log raw
1.1 --- a/src/bootstrap.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/bootstrap.c Tue Dec 15 08:46:37 2009 +1000
1.3 @@ -58,20 +58,20 @@
1.4
1.5
1.6 static char *dc_peripherals[] = { "Uses WinCE", "Unknown (0x0000002)",
1.7 - "Unknown (0x0000004)", "Unknown (0x0000008)",
1.8 - "VGA Box", "Unknown (0x0000020)",
1.9 - "Unknown (0x0000040)", "Unknown (0x0000080)",
1.10 - "Other Expansions", "Puru Puru pack",
1.11 - "Mike", "Memory card",
1.12 - "Basic controller", "C button",
1.13 - "D button", "X button",
1.14 - "Y button", "Z button",
1.15 - "Expanded direction buttons",
1.16 - "Analog R trigger", "Analog L trigger",
1.17 - "Analog horizontal", "Analog vertical",
1.18 - "Expanded analog horizontal",
1.19 - "Expanded analog vertical",
1.20 - "Gun", "Keyboard", "Mouse" };
1.21 + "Unknown (0x0000004)", "Unknown (0x0000008)",
1.22 + "VGA Box", "Unknown (0x0000020)",
1.23 + "Unknown (0x0000040)", "Unknown (0x0000080)",
1.24 + "Other Expansions", "Puru Puru pack",
1.25 + "Mike", "Memory card",
1.26 + "Basic controller", "C button",
1.27 + "D button", "X button",
1.28 + "Y button", "Z button",
1.29 + "Expanded direction buttons",
1.30 + "Analog R trigger", "Analog L trigger",
1.31 + "Analog horizontal", "Analog vertical",
1.32 + "Expanded analog horizontal",
1.33 + "Expanded analog vertical",
1.34 + "Gun", "Keyboard", "Mouse" };
1.35
1.36
1.37 /* Expansion units */
1.38 @@ -128,30 +128,30 @@
1.39 INFO( " Product ID: %-10.10s Product Ver: %-6.6s Date: %-8.8s",
1.40 head->product_id, head->product_ver, head->product_date );
1.41 if( detail ) {
1.42 - INFO( " Header CRC: %04X (Computed %04X)", hcrc, crc );
1.43 - INFO( " Boot File: %-16.16s", head->boot_file );
1.44 - INFO( " Disc ID: %-11.11s Regions: %-8.8s Peripherals: %07X",
1.45 - head->gdrom_id, head->regions, periph );
1.46 - strcpy( buf, " Supports: " );
1.47 - got = 0;
1.48 - for( i=0; i<28; i++ ) {
1.49 - if( periph & (1<<i) ){
1.50 - if( got ) strcat( buf, ", " );
1.51 - strcat( buf, dc_peripherals[i] );
1.52 - got = 1;
1.53 - }
1.54 - if( i == 11 ) i = 23; /* Skip 8-23 */
1.55 - }
1.56 - INFO( buf, NULL );
1.57 - strcpy( buf, " Requires: " );
1.58 - got = 0;
1.59 - for( i=12; i<24; i++ ) {
1.60 - if( periph & (1<<i) ) {
1.61 - if( got ) strcat( buf, ", " );
1.62 - strcat( buf, dc_peripherals[i] );
1.63 - got = 1;
1.64 - }
1.65 - }
1.66 - INFO( buf, NULL );
1.67 + INFO( " Header CRC: %04X (Computed %04X)", hcrc, crc );
1.68 + INFO( " Boot File: %-16.16s", head->boot_file );
1.69 + INFO( " Disc ID: %-11.11s Regions: %-8.8s Peripherals: %07X",
1.70 + head->gdrom_id, head->regions, periph );
1.71 + strcpy( buf, " Supports: " );
1.72 + got = 0;
1.73 + for( i=0; i<28; i++ ) {
1.74 + if( periph & (1<<i) ){
1.75 + if( got ) strcat( buf, ", " );
1.76 + strcat( buf, dc_peripherals[i] );
1.77 + got = 1;
1.78 + }
1.79 + if( i == 11 ) i = 23; /* Skip 8-23 */
1.80 + }
1.81 + INFO( buf, NULL );
1.82 + strcpy( buf, " Requires: " );
1.83 + got = 0;
1.84 + for( i=12; i<24; i++ ) {
1.85 + if( periph & (1<<i) ) {
1.86 + if( got ) strcat( buf, ", " );
1.87 + strcat( buf, dc_peripherals[i] );
1.88 + got = 1;
1.89 + }
1.90 + }
1.91 + INFO( buf, NULL );
1.92 }
1.93 }
.