notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve 64bit portability
[picodrive.git]
/
pico
/
memory.c
diff --git
a/pico/memory.c
b/pico/memory.c
index
c633c89
..
a31a08e
100644
(file)
--- a/
pico/memory.c
+++ b/
pico/memory.c
@@
-832,10
+832,10
@@
PICO_INTERNAL void PicoMemSetup(void)
int i;
\r
// by default, point everything to first 64k of ROM
\r
for (i = 0; i < M68K_FETCHBANK1 * 0xe0 / 0x100; i++)
\r
int i;
\r
// by default, point everything to first 64k of ROM
\r
for (i = 0; i < M68K_FETCHBANK1 * 0xe0 / 0x100; i++)
\r
- PicoCpuFM68k.Fetch[i] = (u
nsigned long
)Pico.rom - (i<<(24-FAMEC_FETCHBITS));
\r
+ PicoCpuFM68k.Fetch[i] = (u
ptr
)Pico.rom - (i<<(24-FAMEC_FETCHBITS));
\r
// now real ROM
\r
for (i = 0; i < M68K_FETCHBANK1 && (i<<(24-FAMEC_FETCHBITS)) < Pico.romsize; i++)
\r
// now real ROM
\r
for (i = 0; i < M68K_FETCHBANK1 && (i<<(24-FAMEC_FETCHBITS)) < Pico.romsize; i++)
\r
- PicoCpuFM68k.Fetch[i] = (u
nsigned long
)Pico.rom;
\r
+ PicoCpuFM68k.Fetch[i] = (u
ptr
)Pico.rom;
\r
// RAM already set
\r
}
\r
#endif
\r
// RAM already set
\r
}
\r
#endif
\r