2009-07-17 19:27:04 +02:00
|
|
|
|
/* FCE Ultra - NES/Famicom Emulator
|
|
|
|
|
*
|
|
|
|
|
* Copyright notice for this file:
|
2010-12-06 03:46:57 +01:00
|
|
|
|
* Copyright (C) 2007-2010 CaH4e3
|
2009-07-17 19:27:04 +02:00
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-12-14 18:18:20 +01:00
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
*
|
|
|
|
|
* VR02/VT03 Console and OneBus System
|
2010-12-06 03:46:57 +01:00
|
|
|
|
*
|
2009-07-17 19:27:04 +02:00
|
|
|
|
* Street Dance (Dance pad) (Unl)
|
2010-12-06 03:46:57 +01:00
|
|
|
|
* 101-in-1 Arcade Action II
|
2012-12-14 18:18:20 +01:00
|
|
|
|
* DreamGEAR 75-in-1, etc.
|
|
|
|
|
*
|
2009-07-17 19:27:04 +02:00
|
|
|
|
*/
|
2010-12-06 03:46:57 +01:00
|
|
|
|
|
2009-07-17 19:27:04 +02:00
|
|
|
|
#include "mapinc.h"
|
|
|
|
|
|
2012-12-14 18:18:20 +01:00
|
|
|
|
// General Purpose Registers
|
|
|
|
|
static uint8 cpu410x[16], ppu201x[16], apu40xx[64];
|
|
|
|
|
|
|
|
|
|
// IRQ Registers
|
|
|
|
|
static uint8 IRQCount, IRQa, IRQReload;
|
2016-09-18 05:43:24 +02:00
|
|
|
|
#define IRQLatch cpu410x[0x1] // accc cccc, a = 0, AD12 switching, a = 1, HSYNC switching
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
|
|
|
|
// MMC3 Registers
|
2016-09-18 05:43:24 +02:00
|
|
|
|
static uint8 inv_hack = 0; // some OneBus Systems have swapped PRG reg commans in MMC3 inplementation,
|
|
|
|
|
// trying to autodetect unusual behavior, due not to add a new mapper.
|
|
|
|
|
#define mmc3cmd cpu410x[0x5] // pcv- ----, p - program swap, c - video swap, v - internal VRAM enable
|
|
|
|
|
#define mirror cpu410x[0x6] // ---- ---m, m = 0 - H, m = 1 - V
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
|
|
|
|
// APU Registers
|
|
|
|
|
static uint8 pcm_enable = 0, pcm_irq = 0;
|
2016-09-18 05:43:24 +02:00
|
|
|
|
static int16 pcm_addr, pcm_size, pcm_latch, pcm_clock = 0xE1;
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
|
|
|
|
static writefunc defapuwrite[64];
|
|
|
|
|
static readfunc defapuread[64];
|
2009-07-17 19:27:04 +02:00
|
|
|
|
|
2022-06-16 03:58:04 +02:00
|
|
|
|
static uint32 WRAMSIZE;
|
|
|
|
|
static uint8 *WRAM = NULL;
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static SFORMAT StateRegs[] =
|
2009-07-17 19:27:04 +02:00
|
|
|
|
{
|
2012-12-14 18:43:51 +01:00
|
|
|
|
{ cpu410x, 16, "REGC" },
|
|
|
|
|
{ ppu201x, 16, "REGS" },
|
|
|
|
|
{ apu40xx, 64, "REGA" },
|
|
|
|
|
{ &IRQReload, 1, "IRQR" },
|
|
|
|
|
{ &IRQCount, 1, "IRQC" },
|
|
|
|
|
{ &IRQa, 1, "IRQA" },
|
|
|
|
|
{ &pcm_enable, 1, "PCME" },
|
|
|
|
|
{ &pcm_irq, 1, "PCMI" },
|
|
|
|
|
{ &pcm_addr, 2, "PCMA" },
|
|
|
|
|
{ &pcm_size, 2, "PCMS" },
|
|
|
|
|
{ &pcm_latch, 2, "PCML" },
|
|
|
|
|
{ &pcm_clock, 2, "PCMC" },
|
|
|
|
|
{ 0 }
|
2009-07-17 19:27:04 +02:00
|
|
|
|
};
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void PSync(void) {
|
|
|
|
|
uint8 bankmode = cpu410x[0xb] & 7;
|
|
|
|
|
uint8 mask = (bankmode == 0x7) ? (0xff) : (0x3f >> bankmode);
|
|
|
|
|
uint32 block = ((cpu410x[0x0] & 0xf0) << 4) + (cpu410x[0xa] & (~mask));
|
|
|
|
|
uint32 pswap = (mmc3cmd & 0x40) << 8;
|
|
|
|
|
|
|
|
|
|
// uint8 bank0 = (cpu410x[0xb] & 0x40)?(~1):(cpu410x[0x7]);
|
|
|
|
|
// uint8 bank1 = cpu410x[0x8];
|
|
|
|
|
// uint8 bank2 = (cpu410x[0xb] & 0x40)?(cpu410x[0x9]):(~1);
|
|
|
|
|
// uint8 bank3 = ~0;
|
|
|
|
|
uint8 bank0 = cpu410x[0x7 ^ inv_hack];
|
|
|
|
|
uint8 bank1 = cpu410x[0x8 ^ inv_hack];
|
|
|
|
|
uint8 bank2 = (cpu410x[0xb] & 0x40) ? (cpu410x[0x9]) : (~1);
|
|
|
|
|
uint8 bank3 = ~0;
|
|
|
|
|
|
|
|
|
|
// FCEU_printf(" PRG: %04x [%02x]",0x8000^pswap,block | (bank0 & mask));
|
|
|
|
|
setprg8(0x8000 ^ pswap, block | (bank0 & mask));
|
|
|
|
|
// FCEU_printf(" %04x [%02x]",0xa000^pswap,block | (bank1 & mask));
|
|
|
|
|
setprg8(0xa000, block | (bank1 & mask));
|
|
|
|
|
// FCEU_printf(" %04x [%02x]",0xc000^pswap,block | (bank2 & mask));
|
|
|
|
|
setprg8(0xc000 ^ pswap, block | (bank2 & mask));
|
|
|
|
|
// FCEU_printf(" %04x [%02x]\n",0xe000^pswap,block | (bank3 & mask));
|
|
|
|
|
setprg8(0xe000, block | (bank3 & mask));
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
2010-12-06 03:46:57 +01:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void CSync(void) {
|
|
|
|
|
static const uint8 midx[8] = { 0, 1, 2, 0, 3, 4, 5, 0 };
|
|
|
|
|
uint8 mask = 0xff >> midx[ppu201x[0xa] & 7];
|
|
|
|
|
uint32 block = ((cpu410x[0x0] & 0x0f) << 11) + ((ppu201x[0x8] & 0x70) << 4) + (ppu201x[0xa] & (~mask));
|
|
|
|
|
uint32 cswap = (mmc3cmd & 0x80) << 5;
|
|
|
|
|
|
|
|
|
|
uint8 bank0 = ppu201x[0x6] & (~1);
|
|
|
|
|
uint8 bank1 = ppu201x[0x6] | 1;
|
|
|
|
|
uint8 bank2 = ppu201x[0x7] & (~1);
|
|
|
|
|
uint8 bank3 = ppu201x[0x7] | 1;
|
|
|
|
|
uint8 bank4 = ppu201x[0x2];
|
|
|
|
|
uint8 bank5 = ppu201x[0x3];
|
|
|
|
|
uint8 bank6 = ppu201x[0x4];
|
|
|
|
|
uint8 bank7 = ppu201x[0x5];
|
|
|
|
|
|
|
|
|
|
setchr1(0x0000 ^ cswap, block | (bank0 & mask));
|
|
|
|
|
setchr1(0x0400 ^ cswap, block | (bank1 & mask));
|
|
|
|
|
setchr1(0x0800 ^ cswap, block | (bank2 & mask));
|
|
|
|
|
setchr1(0x0c00 ^ cswap, block | (bank3 & mask));
|
|
|
|
|
setchr1(0x1000 ^ cswap, block | (bank4 & mask));
|
|
|
|
|
setchr1(0x1400 ^ cswap, block | (bank5 & mask));
|
|
|
|
|
setchr1(0x1800 ^ cswap, block | (bank6 & mask));
|
|
|
|
|
setchr1(0x1c00 ^ cswap, block | (bank7 & mask));
|
|
|
|
|
|
2018-08-13 17:04:20 +02:00
|
|
|
|
setmirror((mirror ^ 1) & 1);
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void Sync(void) {
|
|
|
|
|
PSync();
|
|
|
|
|
CSync();
|
2010-12-06 03:46:57 +01:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static DECLFW(UNLOneBusWriteCPU410X) {
|
|
|
|
|
// FCEU_printf("CPU %04x:%04x\n",A,V);
|
|
|
|
|
switch (A & 0xf) {
|
2016-09-18 05:43:24 +02:00
|
|
|
|
case 0x1: IRQLatch = V & 0xfe; break; // <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2012-12-14 18:43:51 +01:00
|
|
|
|
case 0x2: IRQReload = 1; break;
|
|
|
|
|
case 0x3: X6502_IRQEnd(FCEU_IQEXT); IRQa = 0; break;
|
|
|
|
|
case 0x4: IRQa = 1; break;
|
|
|
|
|
default:
|
|
|
|
|
cpu410x[A & 0xf] = V;
|
|
|
|
|
Sync();
|
|
|
|
|
}
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static DECLFW(UNLOneBusWritePPU201X) {
|
|
|
|
|
// FCEU_printf("PPU %04x:%04x\n",A,V);
|
|
|
|
|
ppu201x[A & 0x0f] = V;
|
|
|
|
|
Sync();
|
2012-12-14 18:18:20 +01:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static DECLFW(UNLOneBusWriteMMC3) {
|
|
|
|
|
// FCEU_printf("MMC %04x:%04x\n",A,V);
|
|
|
|
|
switch (A & 0xe001) {
|
|
|
|
|
case 0x8000: mmc3cmd = (mmc3cmd & 0x38) | (V & 0xc7); Sync(); break;
|
|
|
|
|
case 0x8001:
|
|
|
|
|
{
|
|
|
|
|
switch (mmc3cmd & 7) {
|
|
|
|
|
case 0: ppu201x[0x6] = V; CSync(); break;
|
|
|
|
|
case 1: ppu201x[0x7] = V; CSync(); break;
|
|
|
|
|
case 2: ppu201x[0x2] = V; CSync(); break;
|
|
|
|
|
case 3: ppu201x[0x3] = V; CSync(); break;
|
|
|
|
|
case 4: ppu201x[0x4] = V; CSync(); break;
|
|
|
|
|
case 5: ppu201x[0x5] = V; CSync(); break;
|
|
|
|
|
case 6: cpu410x[0x7] = V; PSync(); break;
|
|
|
|
|
case 7: cpu410x[0x8] = V; PSync(); break;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
2018-08-13 17:04:20 +02:00
|
|
|
|
case 0xa000: mirror = V; CSync(); break;
|
2012-12-14 18:43:51 +01:00
|
|
|
|
case 0xc000: IRQLatch = V & 0xfe; break;
|
|
|
|
|
case 0xc001: IRQReload = 1; break;
|
|
|
|
|
case 0xe000: X6502_IRQEnd(FCEU_IQEXT); IRQa = 0; break;
|
|
|
|
|
case 0xe001: IRQa = 1; break;
|
|
|
|
|
}
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void UNLOneBusIRQHook(void) {
|
|
|
|
|
uint32 count = IRQCount;
|
|
|
|
|
if (!count || IRQReload) {
|
|
|
|
|
IRQCount = IRQLatch;
|
|
|
|
|
IRQReload = 0;
|
|
|
|
|
} else
|
|
|
|
|
IRQCount--;
|
|
|
|
|
if (count && !IRQCount) {
|
|
|
|
|
if (IRQa)
|
|
|
|
|
X6502_IRQBegin(FCEU_IQEXT);
|
|
|
|
|
}
|
2010-12-06 03:46:57 +01:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static DECLFW(UNLOneBusWriteAPU40XX) {
|
2016-09-18 05:43:24 +02:00
|
|
|
|
// if(((A & 0x3f)!=0x16) && ((apu40xx[0x30] & 0x10) || ((A & 0x3f)>0x17)))FCEU_printf("APU %04x:%04x\n",A,V);
|
2012-12-14 18:43:51 +01:00
|
|
|
|
apu40xx[A & 0x3f] = V;
|
|
|
|
|
switch (A & 0x3f) {
|
|
|
|
|
case 0x12:
|
|
|
|
|
if (apu40xx[0x30] & 0x10) {
|
|
|
|
|
pcm_addr = V << 6;
|
|
|
|
|
}
|
2016-09-18 05:43:24 +02:00
|
|
|
|
break;
|
2012-12-14 18:43:51 +01:00
|
|
|
|
case 0x13:
|
|
|
|
|
if (apu40xx[0x30] & 0x10) {
|
|
|
|
|
pcm_size = (V << 4) + 1;
|
|
|
|
|
}
|
2016-09-18 05:43:24 +02:00
|
|
|
|
break;
|
2012-12-14 18:43:51 +01:00
|
|
|
|
case 0x15:
|
|
|
|
|
if (apu40xx[0x30] & 0x10) {
|
|
|
|
|
pcm_enable = V & 0x10;
|
|
|
|
|
if (pcm_irq) {
|
|
|
|
|
X6502_IRQEnd(FCEU_IQEXT);
|
|
|
|
|
pcm_irq = 0;
|
|
|
|
|
}
|
|
|
|
|
if (pcm_enable)
|
|
|
|
|
pcm_latch = pcm_clock;
|
|
|
|
|
V &= 0xef;
|
|
|
|
|
}
|
2016-09-18 05:43:24 +02:00
|
|
|
|
break;
|
2012-12-14 18:43:51 +01:00
|
|
|
|
}
|
|
|
|
|
defapuwrite[A & 0x3f](A, V);
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static DECLFR(UNLOneBusReadAPU40XX) {
|
|
|
|
|
uint8 result = defapuread[A & 0x3f](A);
|
|
|
|
|
// FCEU_printf("read %04x, %02x\n",A,result);
|
|
|
|
|
switch (A & 0x3f) {
|
|
|
|
|
case 0x15:
|
|
|
|
|
if (apu40xx[0x30] & 0x10) {
|
|
|
|
|
result = (result & 0x7f) | pcm_irq;
|
|
|
|
|
}
|
2016-09-18 05:43:24 +02:00
|
|
|
|
break;
|
2012-12-14 18:43:51 +01:00
|
|
|
|
}
|
|
|
|
|
return result;
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void UNLOneBusCpuHook(int a) {
|
|
|
|
|
if (pcm_enable) {
|
|
|
|
|
pcm_latch -= a;
|
|
|
|
|
if (pcm_latch <= 0) {
|
|
|
|
|
pcm_latch += pcm_clock;
|
|
|
|
|
pcm_size--;
|
|
|
|
|
if (pcm_size < 0) {
|
|
|
|
|
pcm_irq = 0x80;
|
|
|
|
|
pcm_enable = 0;
|
|
|
|
|
X6502_IRQBegin(FCEU_IQEXT);
|
|
|
|
|
} else {
|
2016-09-18 05:43:24 +02:00
|
|
|
|
uint16 addr = pcm_addr | ((apu40xx[0x30]^3) << 14);
|
|
|
|
|
uint8 raw_pcm = ARead[addr](addr) >> 1;
|
2012-12-14 18:43:51 +01:00
|
|
|
|
defapuwrite[0x11](0x4011, raw_pcm);
|
|
|
|
|
pcm_addr++;
|
|
|
|
|
pcm_addr &= 0x7FFF;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void UNLOneBusPower(void) {
|
|
|
|
|
uint32 i;
|
|
|
|
|
IRQReload = IRQCount = IRQa = 0;
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
memset(cpu410x, 0x00, sizeof(cpu410x));
|
|
|
|
|
memset(ppu201x, 0x00, sizeof(ppu201x));
|
|
|
|
|
memset(apu40xx, 0x00, sizeof(apu40xx));
|
2009-07-17 19:27:04 +02:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
SetupCartCHRMapping(0, PRGptr[0], PRGsize[0], 0);
|
2010-12-06 03:46:57 +01:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
for (i = 0; i < 64; i++) {
|
|
|
|
|
defapuread[i] = GetReadHandler(0x4000 | i);
|
|
|
|
|
defapuwrite[i] = GetWriteHandler(0x4000 | i);
|
|
|
|
|
}
|
|
|
|
|
SetReadHandler(0x4000, 0x403f, UNLOneBusReadAPU40XX);
|
|
|
|
|
SetWriteHandler(0x4000, 0x403f, UNLOneBusWriteAPU40XX);
|
2009-07-17 19:27:04 +02:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
SetReadHandler(0x8000, 0xFFFF, CartBR);
|
|
|
|
|
SetWriteHandler(0x2010, 0x201f, UNLOneBusWritePPU201X);
|
|
|
|
|
SetWriteHandler(0x4100, 0x410f, UNLOneBusWriteCPU410X);
|
|
|
|
|
SetWriteHandler(0x8000, 0xffff, UNLOneBusWriteMMC3);
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
2022-06-16 03:58:04 +02:00
|
|
|
|
if (WRAMSIZE) {
|
|
|
|
|
FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
|
|
|
|
|
SetWriteHandler(0x6000, 0x6000 + ((WRAMSIZE - 1) & 0x1fff), CartBW);
|
|
|
|
|
SetReadHandler(0x6000, 0x6000 + ((WRAMSIZE - 1) & 0x1fff), CartBR);
|
|
|
|
|
setprg8r(0x10, 0x6000, 0);
|
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
Sync();
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void UNLOneBusReset(void) {
|
|
|
|
|
IRQReload = IRQCount = IRQa = 0;
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
memset(cpu410x, 0x00, sizeof(cpu410x));
|
|
|
|
|
memset(ppu201x, 0x00, sizeof(ppu201x));
|
|
|
|
|
memset(apu40xx, 0x00, sizeof(apu40xx));
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
Sync();
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
static void StateRestore(int version) {
|
|
|
|
|
Sync();
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
2022-06-16 03:58:04 +02:00
|
|
|
|
void UNLOneBusClose(void) {
|
|
|
|
|
if (WRAM)
|
|
|
|
|
FCEU_gfree(WRAM);
|
|
|
|
|
WRAM = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
void UNLOneBus_Init(CartInfo *info) {
|
|
|
|
|
info->Power = UNLOneBusPower;
|
|
|
|
|
info->Reset = UNLOneBusReset;
|
2022-06-16 03:58:04 +02:00
|
|
|
|
info->Close = UNLOneBusClose;
|
2010-12-06 03:46:57 +01:00
|
|
|
|
|
2016-09-18 05:43:24 +02:00
|
|
|
|
if (((*(uint32*)&(info->MD5)) == 0x305fcdc3) || // PowerJoy Supermax Carts
|
2012-12-14 18:43:51 +01:00
|
|
|
|
((*(uint32*)&(info->MD5)) == 0x6abfce8e))
|
|
|
|
|
inv_hack = 0xf;
|
2012-12-14 18:18:20 +01:00
|
|
|
|
|
2012-12-14 18:43:51 +01:00
|
|
|
|
GameHBIRQHook = UNLOneBusIRQHook;
|
|
|
|
|
MapIRQHook = UNLOneBusCpuHook;
|
|
|
|
|
GameStateRestore = StateRestore;
|
|
|
|
|
AddExState(&StateRegs, ~0, 0, 0);
|
2022-06-16 03:58:04 +02:00
|
|
|
|
|
|
|
|
|
WRAMSIZE = 8 * 1024;
|
|
|
|
|
if (info->ines2)
|
|
|
|
|
WRAMSIZE = info->wram_size + info->battery_wram_size;
|
|
|
|
|
if (WRAMSIZE) {
|
|
|
|
|
WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE);
|
|
|
|
|
SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1);
|
|
|
|
|
AddExState(WRAM, WRAMSIZE, 0, "WRAM");
|
|
|
|
|
if (info->battery) {
|
|
|
|
|
info->SaveGame[0] = WRAM;
|
|
|
|
|
info->SaveGameLen[0] = WRAMSIZE;
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-07-17 19:27:04 +02:00
|
|
|
|
}
|