1.1 --- a/src/bios.c Mon Oct 08 12:09:06 2007 +0000
1.2 +++ b/src/bios.c Sat Nov 10 04:45:29 2007 +0000
1.5 - * $Id: bios.c,v 1.4 2007-10-08 12:06:01 nkeynes Exp $
1.6 + * $Id: bios.c,v 1.5 2007-11-08 11:54:16 nkeynes Exp $
1.8 * "Fake" BIOS functions, for operation without the actual BIOS.
1.11 typedef struct gdrom_command {
1.20 memset( &gdrom_cmd_queue, 0, sizeof(gdrom_cmd_queue) );
1.23 -uint32_t bios_gdrom_enqueue( uint32_t cmd, char *ptr )
1.24 +uint32_t bios_gdrom_enqueue( uint32_t cmd, sh4ptr_t ptr )
1.27 for( i=0; i<COMMAND_QUEUE_LENGTH; i++ ) {
1.29 sh4r.r[0] = cmd->status;
1.30 if( cmd->status == GD_CMD_STATUS_ERROR &&
1.32 - mem_copy_to_sh4( sh4r.r[5], (unsigned char *)&cmd->result, sizeof(cmd->result) );
1.33 + mem_copy_to_sh4( sh4r.r[5], (sh4ptr_t)&cmd->result, sizeof(cmd->result) );
1.39 case 4: /* Drive status */
1.40 if( sh4r.r[4] != 0 ) {
1.41 - mem_copy_to_sh4( sh4r.r[4], (unsigned char *)&bios_gdrom_status,
1.42 + mem_copy_to_sh4( sh4r.r[4], (sh4ptr_t)&bios_gdrom_status,
1.43 sizeof(bios_gdrom_status) );