mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
trivial changes
This commit is contained in:
parent
9a5f6f5e44
commit
3a26167962
@ -1520,7 +1520,7 @@ static void do_blitter2 (int hpos, int copper)
|
|||||||
ch++;
|
ch++;
|
||||||
if (blit_ch & 8)
|
if (blit_ch & 8)
|
||||||
ch++;
|
ch++;
|
||||||
write_log (_T("blitstart: %dx%d ch=%d %d*%d=%d d=%d f=%02X n=%d pc=%p l=%d dma=%04X %s\n"),
|
write_log (_T("blitstart: %dx%d ch=%d %d*%d=%d d=%d f=%02x n=%d pc=%08x l=%d dma=%04x %s\n"),
|
||||||
blt_info.hblitsize, blt_info.vblitsize, ch, blit_diag[0], cycles, blit_diag[0] * cycles,
|
blt_info.hblitsize, blt_info.vblitsize, ch, blit_diag[0], cycles, blit_diag[0] * cycles,
|
||||||
blitdesc ? 1 : 0, blitfill, dmaen (DMA_BLITPRI) ? 1 : 0, M68K_GETPC, blitline,
|
blitdesc ? 1 : 0, blitfill, dmaen (DMA_BLITPRI) ? 1 : 0, M68K_GETPC, blitline,
|
||||||
dmacon, ((dmacon & (DMA_MASTER | DMA_BLITTER)) == (DMA_MASTER | DMA_BLITTER)) ? _T("") : _T(" off!"));
|
dmacon, ((dmacon & (DMA_MASTER | DMA_BLITTER)) == (DMA_MASTER | DMA_BLITTER)) ? _T("") : _T(" off!"));
|
||||||
|
|||||||
1
cia.cpp
1
cia.cpp
@ -2000,7 +2000,6 @@ static void write_battclock (void)
|
|||||||
return;
|
return;
|
||||||
struct zfile *f = zfile_fopen (currprefs.rtcfile, _T("wb"));
|
struct zfile *f = zfile_fopen (currprefs.rtcfile, _T("wb"));
|
||||||
if (f) {
|
if (f) {
|
||||||
uae_u8 zero[13] = { 0 };
|
|
||||||
struct tm *ct;
|
struct tm *ct;
|
||||||
time_t t = time (0);
|
time_t t = time (0);
|
||||||
t += currprefs.cs_rtc_adjust;
|
t += currprefs.cs_rtc_adjust;
|
||||||
|
|||||||
@ -96,7 +96,7 @@ typedef struct {
|
|||||||
|
|
||||||
|
|
||||||
/* MMU struct for 68030 */
|
/* MMU struct for 68030 */
|
||||||
struct {
|
static struct {
|
||||||
|
|
||||||
/* Translation tables */
|
/* Translation tables */
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
@ -141,7 +141,7 @@ struct color_entry colors_for_drawing;
|
|||||||
/* The size of these arrays is pretty arbitrary; it was chosen to be "more
|
/* The size of these arrays is pretty arbitrary; it was chosen to be "more
|
||||||
than enough". The coordinates used for indexing into these arrays are
|
than enough". The coordinates used for indexing into these arrays are
|
||||||
almost, but not quite, Amiga coordinates (there's a constant offset). */
|
almost, but not quite, Amiga coordinates (there's a constant offset). */
|
||||||
union {
|
static union {
|
||||||
/* Let's try to align this thing. */
|
/* Let's try to align this thing. */
|
||||||
double uupzuq;
|
double uupzuq;
|
||||||
long int cruxmedo;
|
long int cruxmedo;
|
||||||
@ -275,7 +275,7 @@ static void xlinecheck (unsigned int start, unsigned int end)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define xlinecheck
|
#define xlinecheck(start, end)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void clearbuffer (struct vidbuffer *dst)
|
static void clearbuffer (struct vidbuffer *dst)
|
||||||
@ -2204,8 +2204,6 @@ static void do_flush_screen (struct vidbuffer *vb, int start, int stop)
|
|||||||
* form. */
|
* form. */
|
||||||
static void pfield_expand_dp_bplcon (void)
|
static void pfield_expand_dp_bplcon (void)
|
||||||
{
|
{
|
||||||
static int b2;
|
|
||||||
|
|
||||||
bplres = dp_for_drawing->bplres;
|
bplres = dp_for_drawing->bplres;
|
||||||
bplplanecnt = dp_for_drawing->nr_planes;
|
bplplanecnt = dp_for_drawing->nr_planes;
|
||||||
bplham = dp_for_drawing->ham_seen;
|
bplham = dp_for_drawing->ham_seen;
|
||||||
|
|||||||
@ -134,7 +134,7 @@ void MISC_handler (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mintime != ~0L) {
|
if (mintime != ~0UL) {
|
||||||
eventtab[ev_misc].active = true;
|
eventtab[ev_misc].active = true;
|
||||||
eventtab[ev_misc].oldcycles = ct;
|
eventtab[ev_misc].oldcycles = ct;
|
||||||
eventtab[ev_misc].evtime = ct + mintime;
|
eventtab[ev_misc].evtime = ct + mintime;
|
||||||
|
|||||||
12
gayle.cpp
12
gayle.cpp
@ -1098,7 +1098,6 @@ static void ide_do_command (struct ide_hdf *ide, uae_u8 cmd)
|
|||||||
static uae_u16 ide_get_data (struct ide_hdf *ide)
|
static uae_u16 ide_get_data (struct ide_hdf *ide)
|
||||||
{
|
{
|
||||||
bool irq = false;
|
bool irq = false;
|
||||||
bool last = false;
|
|
||||||
uae_u16 v;
|
uae_u16 v;
|
||||||
|
|
||||||
if (IDE_LOG > 4)
|
if (IDE_LOG > 4)
|
||||||
@ -1189,7 +1188,6 @@ static void ide_put_data (struct ide_hdf *ide, uae_u16 v)
|
|||||||
static int get_gayle_ide_reg (uaecptr addr, struct ide_hdf **ide)
|
static int get_gayle_ide_reg (uaecptr addr, struct ide_hdf **ide)
|
||||||
{
|
{
|
||||||
int ide2;
|
int ide2;
|
||||||
uaecptr a = addr;
|
|
||||||
addr &= 0xffff;
|
addr &= 0xffff;
|
||||||
*ide = NULL;
|
*ide = NULL;
|
||||||
if (addr >= GAYLE_IRQ_4000 && addr <= GAYLE_IRQ_4000 + 1 && currprefs.cs_ide == IDE_A4000)
|
if (addr >= GAYLE_IRQ_4000 && addr <= GAYLE_IRQ_4000 + 1 && currprefs.cs_ide == IDE_A4000)
|
||||||
@ -1372,7 +1370,6 @@ static uae_u32 gayle_read2 (uaecptr addr)
|
|||||||
{
|
{
|
||||||
struct ide_hdf *ide = NULL;
|
struct ide_hdf *ide = NULL;
|
||||||
int ide_reg;
|
int ide_reg;
|
||||||
uae_u8 v = 0;
|
|
||||||
|
|
||||||
addr &= 0xffff;
|
addr &= 0xffff;
|
||||||
if ((IDE_LOG > 3 && (addr != 0x2000 && addr != 0x2001 && addr != 0x3020 && addr != 0x3021 && addr != GAYLE_IRQ_1200)) || IDE_LOG > 5)
|
if ((IDE_LOG > 3 && (addr != 0x2000 && addr != 0x2001 && addr != 0x3020 && addr != 0x3021 && addr != GAYLE_IRQ_1200)) || IDE_LOG > 5)
|
||||||
@ -2008,11 +2005,9 @@ static struct ide_hdf *add_ide_unit (int ch, struct uaedev_config_info *ci)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int pcmcia_common_size, pcmcia_attrs_size;
|
static int pcmcia_common_size, pcmcia_attrs_size;
|
||||||
static int pcmcia_common_mask;
|
|
||||||
static uae_u8 *pcmcia_common;
|
static uae_u8 *pcmcia_common;
|
||||||
static uae_u8 *pcmcia_attrs;
|
static uae_u8 *pcmcia_attrs;
|
||||||
static int pcmcia_write_min, pcmcia_write_max;
|
static int pcmcia_write_min, pcmcia_write_max;
|
||||||
static int pcmcia_oddevenflip;
|
|
||||||
static uae_u16 pcmcia_idedata;
|
static uae_u16 pcmcia_idedata;
|
||||||
|
|
||||||
static int get_pcmcmia_ide_reg (uaecptr addr, int width, struct ide_hdf **ide)
|
static int get_pcmcmia_ide_reg (uaecptr addr, int width, struct ide_hdf **ide)
|
||||||
@ -2411,7 +2406,7 @@ static int initpcmcia (const TCHAR *path, int readonly, int type, int reset)
|
|||||||
if (!pcmcia_sram->hfd.drive_empty) {
|
if (!pcmcia_sram->hfd.drive_empty) {
|
||||||
pcmcia_common_size = pcmcia_sram->hfd.virtsize;
|
pcmcia_common_size = pcmcia_sram->hfd.virtsize;
|
||||||
if (pcmcia_sram->hfd.virtsize > 4 * 1024 * 1024) {
|
if (pcmcia_sram->hfd.virtsize > 4 * 1024 * 1024) {
|
||||||
write_log (_T("PCMCIA SRAM: too large device, %d bytes\n"), pcmcia_sram->hfd.virtsize);
|
write_log (_T("PCMCIA SRAM: too large device, %llu bytes\n"), pcmcia_sram->hfd.virtsize);
|
||||||
pcmcia_common_size = 4 * 1024 * 1024;
|
pcmcia_common_size = 4 * 1024 * 1024;
|
||||||
}
|
}
|
||||||
pcmcia_common = xcalloc (uae_u8, pcmcia_common_size);
|
pcmcia_common = xcalloc (uae_u8, pcmcia_common_size);
|
||||||
@ -2674,11 +2669,6 @@ void gayle_map_pcmcia (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rl (uae_u8 *p)
|
|
||||||
{
|
|
||||||
return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | (p[3]);
|
|
||||||
}
|
|
||||||
|
|
||||||
void gayle_free_units (void)
|
void gayle_free_units (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
#ifndef UAE_ARCADIA_H
|
||||||
|
#define UAE_ARCADIA_H
|
||||||
|
|
||||||
#ifdef ARCADIA
|
#ifdef ARCADIA
|
||||||
|
|
||||||
@ -26,4 +28,6 @@ extern int arcadia_flag, arcadia_coin[2];
|
|||||||
#define ARCADIA_BIOS 1
|
#define ARCADIA_BIOS 1
|
||||||
#define ARCADIA_GAME 2
|
#define ARCADIA_GAME 2
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // UAE_ARCADIA_H
|
||||||
|
|||||||
@ -70,7 +70,7 @@ extern "C"
|
|||||||
struct uae_filter
|
struct uae_filter
|
||||||
{
|
{
|
||||||
int type, yuv, intmul;
|
int type, yuv, intmul;
|
||||||
TCHAR *name, *cfgname;
|
const TCHAR *name, *cfgname;
|
||||||
int flags;
|
int flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
#ifndef UAE_STATUSLINE_H
|
||||||
|
#define UAE_STATUSLINE_H
|
||||||
|
|
||||||
#define TD_PADX 4
|
#define TD_PADX 4
|
||||||
#define TD_PADY 2
|
#define TD_PADY 2
|
||||||
@ -36,3 +38,5 @@ extern void statusline_vsync(void);
|
|||||||
extern void statusline_updated(void);
|
extern void statusline_updated(void);
|
||||||
extern bool has_statusline_updated(void);
|
extern bool has_statusline_updated(void);
|
||||||
extern const TCHAR *statusline_fetch(void);
|
extern const TCHAR *statusline_fetch(void);
|
||||||
|
|
||||||
|
#endif // UAE_STATUSLINE_H
|
||||||
|
|||||||
@ -6,6 +6,9 @@
|
|||||||
* (c) 1996 Samuel Devulder
|
* (c) 1996 Samuel Devulder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef_UAE_ZFILE_H
|
||||||
|
#define UAE_ZFILE_H
|
||||||
|
|
||||||
struct zfile;
|
struct zfile;
|
||||||
struct zvolume;
|
struct zvolume;
|
||||||
struct zdirectory;
|
struct zdirectory;
|
||||||
@ -146,4 +149,6 @@ struct mystat
|
|||||||
struct mytimeval mtime;
|
struct mytimeval mtime;
|
||||||
};
|
};
|
||||||
extern void timeval_to_amiga (struct mytimeval *tv, int* days, int* mins, int* ticks);
|
extern void timeval_to_amiga (struct mytimeval *tv, int* days, int* mins, int* ticks);
|
||||||
extern void amiga_to_timeval (struct mytimeval *tv, int days, int mins, int ticks);
|
extern void amiga_to_timeval (struct mytimeval *tv, int days, int mins, int ticks);
|
||||||
|
|
||||||
|
#endif // UAE_ZFILE_H
|
||||||
|
|||||||
@ -56,10 +56,7 @@ int record_key (int kc)
|
|||||||
|
|
||||||
int record_key_direct (int kc)
|
int record_key_direct (int kc)
|
||||||
{
|
{
|
||||||
int fs = 0;
|
|
||||||
int kpb_next = kpb_first + 1;
|
int kpb_next = kpb_first + 1;
|
||||||
int k = kc >> 1;
|
|
||||||
int b = !(kc & 1);
|
|
||||||
|
|
||||||
//write_log (_T("got kc %02X\n"), ((kc << 7) | (kc >> 1)) & 0xff);
|
//write_log (_T("got kc %02X\n"), ((kc << 7) | (kc >> 1)) & 0xff);
|
||||||
if (kpb_next == KEYBUF_SIZE)
|
if (kpb_next == KEYBUF_SIZE)
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@ -716,7 +716,7 @@ static int diskswapper_cb (struct zfile *f, void *vrsd)
|
|||||||
static void parse_diskswapper (const TCHAR *s)
|
static void parse_diskswapper (const TCHAR *s)
|
||||||
{
|
{
|
||||||
TCHAR *tmp = my_strdup (s);
|
TCHAR *tmp = my_strdup (s);
|
||||||
TCHAR *delim = _T(",");
|
const TCHAR *delim = _T(",");
|
||||||
TCHAR *p1, *p2;
|
TCHAR *p1, *p2;
|
||||||
int num = 0;
|
int num = 0;
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
TCHAR *my_strdup (const TCHAR *s)
|
TCHAR *my_strdup (const TCHAR *s)
|
||||||
{
|
{
|
||||||
TCHAR *x = (char*)xmalloc(strlen((TCHAR *)s) + 1);
|
TCHAR *x = (char*)malloc(strlen((TCHAR *)s) + 1);
|
||||||
strcpy(x, (TCHAR *)s);
|
strcpy(x, (TCHAR *)s);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,7 +122,7 @@ static struct priv_devstruct *getpdevstruct (uaecptr request)
|
|||||||
return &pdevst[i];
|
return &pdevst[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
static TCHAR *getdevname (int type)
|
static const TCHAR *getdevname (int type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case UAEDEV_SCSI_ID:
|
case UAEDEV_SCSI_ID:
|
||||||
@ -1580,4 +1580,4 @@ uae_u8 *restore_scsidev (uae_u8 *src)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return src;
|
return src;
|
||||||
}
|
}
|
||||||
|
|||||||
11
scsitape.cpp
11
scsitape.cpp
@ -381,7 +381,7 @@ int scsi_tape_emulate (struct scsi_data_tape *tape, uae_u8 *cmdbuf, int scsi_cmd
|
|||||||
case 0x10: /* WRITE FILEMARK */
|
case 0x10: /* WRITE FILEMARK */
|
||||||
len = rl (cmdbuf + 1) & 0xffffff;
|
len = rl (cmdbuf + 1) & 0xffffff;
|
||||||
if (log_tapeemu)
|
if (log_tapeemu)
|
||||||
write_log (_T("TAPEEMU WRITE FILEMARK %d\n"), len);
|
write_log (_T("TAPEEMU WRITE FILEMARK %lld\n"), len);
|
||||||
if (notape (tape))
|
if (notape (tape))
|
||||||
goto notape;
|
goto notape;
|
||||||
if (tape->unloaded)
|
if (tape->unloaded)
|
||||||
@ -400,7 +400,7 @@ int scsi_tape_emulate (struct scsi_data_tape *tape, uae_u8 *cmdbuf, int scsi_cmd
|
|||||||
if (cmdbuf[1] & 1)
|
if (cmdbuf[1] & 1)
|
||||||
len *= tape->blocksize;
|
len *= tape->blocksize;
|
||||||
if (log_tapeemu)
|
if (log_tapeemu)
|
||||||
write_log (_T("TAPEEMU WRITE %d (%d, %d)\n"), len, rl (cmdbuf + 1) & 0xffffff, cmdbuf[1] & 1);
|
write_log (_T("TAPEEMU WRITE %lld (%d, %d)\n"), len, rl (cmdbuf + 1) & 0xffffff, cmdbuf[1] & 1);
|
||||||
if (notape (tape))
|
if (notape (tape))
|
||||||
goto notape;
|
goto notape;
|
||||||
if (tape->unloaded)
|
if (tape->unloaded)
|
||||||
@ -419,7 +419,7 @@ int scsi_tape_emulate (struct scsi_data_tape *tape, uae_u8 *cmdbuf, int scsi_cmd
|
|||||||
if (cmdbuf[1] & 1)
|
if (cmdbuf[1] & 1)
|
||||||
len *= tape->blocksize;
|
len *= tape->blocksize;
|
||||||
if (log_tapeemu)
|
if (log_tapeemu)
|
||||||
write_log (_T("TAPEEMU READ %d (%d, %d)\n"), len, rl (cmdbuf + 1) & 0xffffff, cmdbuf[1] & 1);
|
write_log (_T("TAPEEMU READ %lld (%d, %d)\n"), len, rl (cmdbuf + 1) & 0xffffff, cmdbuf[1] & 1);
|
||||||
if (notape (tape))
|
if (notape (tape))
|
||||||
goto notape;
|
goto notape;
|
||||||
if (tape->unloaded)
|
if (tape->unloaded)
|
||||||
@ -460,7 +460,7 @@ int scsi_tape_emulate (struct scsi_data_tape *tape, uae_u8 *cmdbuf, int scsi_cmd
|
|||||||
s[13] = 1; /* File Mark detected */
|
s[13] = 1; /* File Mark detected */
|
||||||
ls = 0x12;
|
ls = 0x12;
|
||||||
if (log_tapeemu)
|
if (log_tapeemu)
|
||||||
write_log (_T("TAPEEMU READ FILE END, %d remaining\n"), len - scsi_len);
|
write_log (_T("TAPEEMU READ FILE END, %lld remaining\n"), len - scsi_len);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -469,7 +469,6 @@ int scsi_tape_emulate (struct scsi_data_tape *tape, uae_u8 *cmdbuf, int scsi_cmd
|
|||||||
{
|
{
|
||||||
uae_u8 *p;
|
uae_u8 *p;
|
||||||
int maxlen;
|
int maxlen;
|
||||||
bool pcodeloop = false;
|
|
||||||
bool sense10 = cmdbuf[0] == 0x5a;
|
bool sense10 = cmdbuf[0] == 0x5a;
|
||||||
int totalsize, bdsize;
|
int totalsize, bdsize;
|
||||||
int pc = cmdbuf[2] >> 6;
|
int pc = cmdbuf[2] >> 6;
|
||||||
@ -673,4 +672,4 @@ notape:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,7 +94,7 @@ void draw_status_line_single (uae_u8 *buf, int bpp, int y, int totalwidth, uae_u
|
|||||||
for (led = 0; led < LED_MAX; led++) {
|
for (led = 0; led < LED_MAX; led++) {
|
||||||
int side, pos, num1 = -1, num2 = -1, num3 = -1, num4 = -1;
|
int side, pos, num1 = -1, num2 = -1, num3 = -1, num4 = -1;
|
||||||
int x, c, on = 0, am = 2;
|
int x, c, on = 0, am = 2;
|
||||||
xcolnr on_rgb, on_rgb2, off_rgb, pen_rgb;
|
xcolnr on_rgb = 0, on_rgb2 = 0, off_rgb = 0, pen_rgb = 0;
|
||||||
int half = 0;
|
int half = 0;
|
||||||
|
|
||||||
if (!(currprefs.leds_on_screen_mask[picasso_on ? 1 : 0] & (1 << led)))
|
if (!(currprefs.leds_on_screen_mask[picasso_on ? 1 : 0] & (1 << led)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user