imported winuaesrc1450b13.zip

This commit is contained in:
Toni Wilen 2007-11-18 14:38:29 +02:00
parent 751f4ac6f7
commit 3730298c98
519 changed files with 1778 additions and 1572 deletions

0
ChangeLog Normal file → Executable file
View File

9
a2091.c Normal file → Executable file
View File

@ -176,6 +176,8 @@ static int isirq(void)
void rethink_a2091(void)
{
if (currprefs.cs_cdtvscsi)
return;
if (isirq()) {
uae_int_requested |= 2;
#if A2091_DEBUG > 2 || A3000_DEBUG > 2
@ -190,6 +192,8 @@ static void INT2(void)
{
int irq = 0;
if (currprefs.cs_cdtvscsi)
return;
if (!(auxstatus & 0x80))
return;
dmac_istr |= ISTR_INTS;
@ -243,6 +247,10 @@ static void doscsistatus(void)
#if WD33C93_DEBUG > 0
write_log ("%s STATUS=%02X\n", WD33C93, scsidelay_status);
#endif
if (currprefs.cs_cdtvscsi) {
cdtv_scsi_int ();
return;
}
if (!currprefs.cs_a2091 && currprefs.cs_mbdmac != 1)
return;
INT2();
@ -610,6 +618,7 @@ uae_u8 wdscsi_get(void)
} else if (sasr == WD_SCSI_STATUS) {
uae_int_requested &= ~2;
auxstatus &= ~0x80;
cdtv_scsi_clear_int ();
dmac_istr &= ~ISTR_INTS;
if (wdregs[WD_COMMAND_PHASE] == 0x10) {
wdregs[WD_COMMAND_PHASE] = 0x11;

0
akiko.c Normal file → Executable file
View File

0
akiko2.c Normal file → Executable file
View File

0
amax.c Normal file → Executable file
View File

0
ar.c Normal file → Executable file
View File

0
arcadia.c Normal file → Executable file
View File

0
archivers/7z/7zAlloc.c Normal file → Executable file
View File

0
archivers/7z/7zAlloc.h Normal file → Executable file
View File

0
archivers/7z/7zBuffer.c Normal file → Executable file
View File

0
archivers/7z/7zBuffer.h Normal file → Executable file
View File

0
archivers/7z/7zCrc.c Normal file → Executable file
View File

0
archivers/7z/7zCrc.h Normal file → Executable file
View File

0
archivers/7z/7zDecode.c Normal file → Executable file
View File

0
archivers/7z/7zDecode.h Normal file → Executable file
View File

0
archivers/7z/7zExtract.c Normal file → Executable file
View File

0
archivers/7z/7zExtract.h Normal file → Executable file
View File

0
archivers/7z/7zHeader.c Normal file → Executable file
View File

0
archivers/7z/7zHeader.h Normal file → Executable file
View File

0
archivers/7z/7zIn.c Normal file → Executable file
View File

0
archivers/7z/7zIn.h Normal file → Executable file
View File

0
archivers/7z/7zItem.c Normal file → Executable file
View File

0
archivers/7z/7zItem.h Normal file → Executable file
View File

0
archivers/7z/7zMain.c Normal file → Executable file
View File

0
archivers/7z/7zMethodID.c Normal file → Executable file
View File

0
archivers/7z/7zMethodID.h Normal file → Executable file
View File

0
archivers/7z/7zTypes.h Normal file → Executable file
View File

0
archivers/7z/LzmaDecode.c Normal file → Executable file
View File

0
archivers/7z/LzmaDecode.h Normal file → Executable file
View File

0
archivers/7z/LzmaTypes.h Normal file → Executable file
View File

0
archivers/dms/cdata.h Normal file → Executable file
View File

0
archivers/dms/crc_csum.c Normal file → Executable file
View File

0
archivers/dms/crc_csum.h Normal file → Executable file
View File

0
archivers/dms/getbits.c Normal file → Executable file
View File

0
archivers/dms/getbits.h Normal file → Executable file
View File

0
archivers/dms/maketbl.c Normal file → Executable file
View File

0
archivers/dms/maketbl.h Normal file → Executable file
View File

0
archivers/dms/pfile.c Normal file → Executable file
View File

0
archivers/dms/pfile.h Normal file → Executable file
View File

0
archivers/dms/tables.c Normal file → Executable file
View File

0
archivers/dms/tables.h Normal file → Executable file
View File

0
archivers/dms/u_deep.c Normal file → Executable file
View File

0
archivers/dms/u_deep.h Normal file → Executable file
View File

0
archivers/dms/u_heavy.c Normal file → Executable file
View File

0
archivers/dms/u_heavy.h Normal file → Executable file
View File

0
archivers/dms/u_init.c Normal file → Executable file
View File

0
archivers/dms/u_init.h Normal file → Executable file
View File

0
archivers/dms/u_medium.c Normal file → Executable file
View File

0
archivers/dms/u_medium.h Normal file → Executable file
View File

0
archivers/dms/u_quick.c Normal file → Executable file
View File

0
archivers/dms/u_quick.h Normal file → Executable file
View File

0
archivers/dms/u_rle.c Normal file → Executable file
View File

0
archivers/dms/u_rle.h Normal file → Executable file
View File

0
archivers/lha/crcio.c Normal file → Executable file
View File

0
archivers/lha/dhuf.c Normal file → Executable file
View File

0
archivers/lha/header.c Normal file → Executable file
View File

0
archivers/lha/huf.c Normal file → Executable file
View File

0
archivers/lha/larc.c Normal file → Executable file
View File

0
archivers/lha/lha.h Normal file → Executable file
View File

0
archivers/lha/lha_macro.h Normal file → Executable file
View File

0
archivers/lha/lhamaketbl.c Normal file → Executable file
View File

0
archivers/lha/lharc.c Normal file → Executable file
View File

0
archivers/lha/shuf.c Normal file → Executable file
View File

0
archivers/lha/slide.c Normal file → Executable file
View File

0
archivers/lha/uae_lha.c Normal file → Executable file
View File

0
archivers/lha/util.c Normal file → Executable file
View File

0
archivers/lzx/unlzx.c Normal file → Executable file
View File

0
archivers/wrp/warp.c Normal file → Executable file
View File

0
archivers/wrp/warp.h Normal file → Executable file
View File

0
archivers/xfd/main.c Normal file → Executable file
View File

0
archivers/xfd/xfd.c Normal file → Executable file
View File

0
archivers/xfd/xfdmaster.h Normal file → Executable file
View File

0
archivers/zip/unzip.c Normal file → Executable file
View File

0
archivers/zip/unzip.h Normal file → Executable file
View File

0
audio.c Normal file → Executable file
View File

20
autoconf.c Normal file → Executable file
View File

@ -28,6 +28,7 @@ uaecptr EXPANSION_bootcode, EXPANSION_nullfunc;
/* ROM tag area memory access */
uae_u8 *rtarea;
uaecptr rtarea_base = 0xf00000;
static uae_u32 REGPARAM3 rtarea_lget (uaecptr) REGPARAM;
static uae_u32 REGPARAM3 rtarea_wget (uaecptr) REGPARAM;
@ -114,7 +115,7 @@ static int rt_straddr;
uae_u32 addr (int ptr)
{
return (uae_u32)ptr + RTAREA_BASE;
return (uae_u32)ptr + rtarea_base;
}
void db (uae_u8 data)
@ -157,7 +158,9 @@ void calltrap (uae_u32 n)
void org (uae_u32 a)
{
rt_addr = a - RTAREA_BASE;
if ( ((a & 0xffff0000) != 0x00f00000) && ((a & 0xffff0000) != rtarea_base) )
write_log ("ORG: corrupt address! %08X", a);
rt_addr = a & 0xffff;
}
uae_u32 here (void)
@ -224,13 +227,13 @@ void rtarea_init (void)
a = here();
/* Dummy trap - removing this breaks the filesys emulation. */
org (RTAREA_BASE + 0xFF00);
org (rtarea_base + 0xFF00);
calltrap (deftrap2 (nullfunc, TRAPFLAG_NO_RETVAL, ""));
org (RTAREA_BASE + 0xFF80);
org (rtarea_base + 0xFF80);
calltrap (deftrap2 (getchipmemsize, TRAPFLAG_DORET, ""));
org (RTAREA_BASE + 0xFF10);
org (rtarea_base + 0xFF10);
calltrap (deftrap2 (uae_puts, TRAPFLAG_NO_RETVAL, ""));
dw (RTS);
@ -240,7 +243,7 @@ void rtarea_init (void)
filesys_install_code ();
#endif
uae_boot_rom_size = here() - RTAREA_BASE;
uae_boot_rom_size = here() - rtarea_base;
init_extended_traps ();
}
@ -253,4 +256,9 @@ void set_uae_int_flag (void)
void rtarea_setup (void)
{
uaecptr base = need_uae_boot_rom ();
if (base) {
write_log ("RTAREA located at %08X\n", base);
rtarea_base = base;
}
}

0
blitops.c Normal file → Executable file
View File

0
blitter.c Normal file → Executable file
View File

0
blitter2.c Normal file → Executable file
View File

0
blitter3.c Normal file → Executable file
View File

0
blkdev.c Normal file → Executable file
View File

0
bsdsocket.c Normal file → Executable file
View File

0
build68k.c Normal file → Executable file
View File

0
catweasel.c Normal file → Executable file
View File

0
cdrom.c Normal file → Executable file
View File

12
cdtv.c Normal file → Executable file
View File

@ -53,7 +53,8 @@
#define AUDIO_STATUS_PLAY_ERROR 0x14
#define AUDIO_STATUS_NO_STATUS 0x15
#define MODEL_NAME "MATSHITA0.97" /* also MATSHITA0.96 exists */
#define MODEL_NAME "MATSHITA0.96"
/* also MATSHITA0.97 exists but is apparently rare */
static smp_comm_pipe requests;
static volatile int thread_alive;
@ -866,6 +867,15 @@ static void checkint(void)
INT2();
}
void cdtv_scsi_int (void)
{
checkint ();
}
void cdtv_scsi_clear_int (void)
{
dmac_istr &= ~ISTR_INTS;
}
void rethink_cdtv (void)
{
checkint ();

1
cfgfile.c Normal file → Executable file
View File

@ -2858,6 +2858,7 @@ void default_prefs (struct uae_prefs *p, int type)
p->filesys_custom_uaefsdb = 1;
p->picasso96_nocustom = 1;
p->cart_internal = 1;
p->sana2[0] = 0;
p->cs_compatible = 1;
p->cs_rtc = 2;

0
cia.c Normal file → Executable file
View File

0
compemu_fpp.c Normal file → Executable file
View File

0
compemu_optimizer.c Normal file → Executable file
View File

0
compemu_optimizer_x86.c Normal file → Executable file
View File

0
compemu_raw_x86.c Normal file → Executable file
View File

0
compemu_support.c Normal file → Executable file
View File

0
core.cw4.c Normal file → Executable file
View File

0
cpu_small.c Normal file → Executable file
View File

0
cpummu.c Normal file → Executable file
View File

0
cpuopti.c Normal file → Executable file
View File

0
cpustbl_small.c Normal file → Executable file
View File

0
cputbl_small.h Normal file → Executable file
View File

0
crc32.c Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More