OSDN Git Service

ram dump 対応
[unagi/old-svn-converted.git] / client / trunk / anago / konami_vrc4b.af
1 board <- {
2         mappernum = 25, ppu_ramfind = false, vram_mirrorfind = false
3         cpu_rom = {
4                 size_base = 1 * mega, size_max = 2 * mega,
5                 banksize = 0x2000
6         },
7         ppu_rom = {
8                 size_base = 1 * mega, size_max = 2 * mega,
9                 banksize = 0x2000 / 8
10         }
11 };
12 dofile("vrc4.ai");
13 function cpu_dump(d, pagesize, banksize)
14 {
15         vrc4_cpu_dump(d, pagesize, banksize, 1, 0);
16 }
17
18 function ppu_dump(d, pagesize, banksize)
19 {
20         vrc4_ppu_dump(d, pagesize, banksize, 1, 0);
21 }
22
23 /*
24 VRC4b FLASH MEMORY WRITE
25 generic CPU memory bank
26 cpu address|rom address    |page|task
27 $8000-$9fff|0x02000-0x03fff|1   |write 0x2aaa
28 $a000-$bfff|n * 0x2000     |n   |write area
29 $c000-$dfff|末尾-1         |fix |write 0x5555
30 $e000-$efff|末尾           |fix |boot area, 未使用
31 PPU memory bank
32 ppu address|rom address    |page|task
33 $0000-$04ff|0x02800-0x027ff|0x0a|write (0x2aaa & 0x03ff) + 0
34 $0400-$07ff|0x05400-0x057ff|0x15|write (0x5555 & 0x03ff) + 0x400
35 $1000-$1fff|n * 0x1000     |n   |write area
36 */
37 function program_initalize(d, cpu_banksize, ppu_banksize)
38 {
39         vrc4_program_initialize(d, cpu_banksize, ppu_banksize, 1, 0)
40 }
41
42 function ppu_transfer(d, start, end, ppu_banksize)
43 {
44         vrc4_ppu_transfer(d, start, end, ppu_banksize, 1, 0);
45 }