notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some changes for common z80 code
[picodrive.git]
/
Pico
/
Pico
/
Memory.c
diff --git
a/Pico/Pico/Memory.c
b/Pico/Pico/Memory.c
index
3b53679
..
8c4674b
100644
(file)
--- a/
Pico/Pico/Memory.c
+++ b/
Pico/Pico/Memory.c
@@
-34,7
+34,7
@@
static u32 PicoReadPico8(u32 a)
case 0x01: d = PicoPicohw.r1; break;
case 0x03:
d = PicoPad[0]&0x1f; // d-pad
case 0x01: d = PicoPicohw.r1; break;
case 0x03:
d = PicoPad[0]&0x1f; // d-pad
- d |= (PicoPad[0]&0x20) << 2; //
red button
-> C
+ d |= (PicoPad[0]&0x20) << 2; //
pen push
-> C
d = ~d;
break;
d = ~d;
break;
@@
-110,7
+110,6
@@
end:
// -----------------------------------------------------------------
// Write Ram
// -----------------------------------------------------------------
// Write Ram
-
/*
void dump(u16 w)
{
/*
void dump(u16 w)
{
@@
-118,6
+117,7
@@
void dump(u16 w)
char fname[32];
int num = PicoPicohw.r12 & 0xf;
char fname[32];
int num = PicoPicohw.r12 & 0xf;
+ w = (w << 8) | (w >> 8);
sprintf(fname, "ldump%i.bin", num);
if (f[num] == NULL)
f[num] = fopen(fname, "wb");
sprintf(fname, "ldump%i.bin", num);
if (f[num] == NULL)
f[num] = fopen(fname, "wb");
@@
-159,7
+159,7
@@
static void PicoWritePico16(u32 a,u16 d)
a&=0xfffffe;
if ((a&0xfffff0)==0xc00000) { PicoVideoWrite(a,(u16)d); return; } // VDP
a&=0xfffffe;
if ((a&0xfffff0)==0xc00000) { PicoVideoWrite(a,(u16)d); return; } // VDP
-
//
if (a == 0x800010) dump(d);
+
//
if (a == 0x800010) dump(d);
if (a == 0x800010)
{
PicoPicohw.fifo_bytes += 2;
if (a == 0x800010)
{
PicoPicohw.fifo_bytes += 2;